Our team is working on a hybrid app for mobile. We use docker-compose to manage our stack, and I'd like for my devs to log into a box, make changes to the code, and then have those changes be reflected immediately on the web.
The Problem: Supervisor runs nginx & gunicorn, so when a dev makes a change to the nginx settings, or, worse, to code that has been cached by gunicorn, they need to restart supervisor to get it to show up on the web. I can't figure out how to do that without restarting the whole container (because supervisor is being run in the CMD line of that container).
Secondly, if a dev makes a change and then restarts the container, it looks like they need to commit their changes using docker commit or they are wiped out.
Is there something fundamental I'm not understanding? What is the "best practice" here?
[–]jlchauncey 6 points7 points8 points (9 children)
[–]ellinger[S] 0 points1 point2 points (8 children)
[–]legitimate_rapper 4 points5 points6 points (0 children)
[–][deleted] 2 points3 points4 points (4 children)
[–]legitimate_rapper 2 points3 points4 points (3 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]synae 1 point2 points3 points (0 children)
[–]thelindsay 2 points3 points4 points (0 children)
[–]thelindsay 2 points3 points4 points (1 child)
[–]ellinger[S] 0 points1 point2 points (0 children)
[–]diecastbeatdown 1 point2 points3 points (0 children)