[英]How to run Django server locally on master branch while I am developing on the other branch
I'm setting up a Django 2.1 server and I want to run the server because it's servicing to my LAN. 我正在设置Django 2.1服务器,并且想运行该服务器,因为它正在为我的LAN服务。 I want the server to keep running while I'm developing it on the other branch.
我希望服务器在另一个分支上开发时保持运行。
But the server downs when I change the branch; 但是,当我更改分支机构时,服务器将关闭; Actually its branch changes too!
实际上它的分支也改变了!
How to do that? 怎么做?
You shouldn't be developing and running production code from the same location. 您不应该在同一位置开发和运行生产代码。 That's really bad practice.
那真是不好的做法。 You can either:
您可以:
I always opt for number 2 above. 我总是选择上面的2。 I develop on my laptop (running everything locally), then deploy that to a Docker-ized Ubuntu system.
我在笔记本电脑上进行开发(在本地运行所有内容),然后将其部署到Docker化的Ubuntu系统中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.