How to restart Foreman when code in a Django site changes?

自古美人都是妖i 提交于 2019-12-12 22:30:50

问题


I'm running a Django website in a Vagrant box that (roughly) mirrors a Heroku set-up. It uses Foreman with a Procfile like this:

web: gunicorn projectname.wsgi > /vagrant/gunicorn.log 2>&1

However, when I change my Django code, the server doesn't restart or reload the code, which makes development... painful!

How can I make Foreman serve the new code when it changes?

来源:https://stackoverflow.com/questions/38189188/how-to-restart-foreman-when-code-in-a-django-site-changes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!