When you work on django in docker, sometimes it’s not might be autoload. I have been shutdown and restart the docker-compose
process, but, there is cool way.
- Mount code volumes into django image (https://stackoverflow.com/a/32029035)
- Set
--reload
option on the command line executor of gunicorn
1
gunicorn myapp.dev.wsgi -b 0:8080 --reload
-
Previous
[Server] Server shutdown problem - Django memory leak with scrapy -
Next
[Docker] Docker-compose auto-start after lauching AWS EC2 server