I am trying to deploy my application and my folders are organized in such a way that it means that I only change the symbolic link when I want to deploy a new version. Like this:
./2013-07-16-10-12-48-test/ ./2013-07-16-10-17-01-test/ ./current -> 2013-07-16-10-17-01-test/
Usually I just used kill -HUP master-pid and everything works until the directory remains the same. But when I first change the symbolic link, and then reload the code, it is still executed from the old directory by its absolute path, for example, shooting follows the symbolic link and saves the final path. I start shooting like this: gunicorn run:app -c gunicorn-config.py inside the "current" directory, and my configuration file looks like this:
workers = 4 worker_class = 'gevent' bind = '127.0.0.1:5000' pidfile = '/var/run/gunicorn.pid' debug = False loglevel = 'debug' errorlog = '/var/log/gunicorn-error.log' daemon = True
Is there a way for the gun to overestimate a symbolic link or save a symbolic link instead of the full path? Perhaps something like on_starting or on_reload hook?
Here is a solution that I could not work with, perhaps this gives an even greater context.
moodh source share