3 ms·
I use fabric http://fabfile.org http://fabfile.org for deployment and though I don't have multiple servers, it's really easy to add more servers to a fabfile (a
by selectnull 16y ago
I use fabric http://fabfile.org http://fabfile.org for deployment and though I don't have multiple servers, it's really easy to add more servers to a fabfile (a python script). Deployment is easy and flexible, for example I use something like this:
fab release pull update touch
The above will work on release version, will pull in changes from repo (hg in my case), will update to tip (or any tag I want), remove any *.pyc files and recompile and finally touch wsgi file. All these (release, pull, update, touch) are custom written python functions using fabric library.
If I want to restart apache, I use this (could have combined it with previous example and it would work)
fab apache_restart
Fabric is joy to use, very easy to write powerful deployment scripts and has good documentation: highly recommended.