Commits

Mikhail Korobov committed afdc77e

More docs for provided fab commands

Comments (0)

Files changed (1)

       If there are other sites on server (not managed by django-fab-deploy)
       they may become unaccessible due to these changes.
 
+Working with the server
+-----------------------
+
+django-fab-deploy provides additional commands that should be useful for
+updating the server:
+
+1. Source changes are deployed with :func:`fab_deploy.deploy.push` command::
+
+       fab push
+
+   Another example (deploy changes on 'prod' server, update pip
+   requirements and perform migrations in one step::
+
+       fab prod push:pip_update,migrate
+
+2. Update web server configuration::
+
+       fab setup_web_server
+
+3. Update django configuration (:file:`config.server.py`)::
+
+       fab update_django_config
+
+4. Requirements are updated with :func:`fab_deploy.virtualenv.pip_update`
+   command. Update requirements listed in reqs/active.txt::
+
+       fab pip_update
+
+   Update requirements listed in reqs/my_apps.txt::
+
+       fab pip_update:my_apps
+
+5. Remotely change hg branch (assuming :attr:`env.conf.VCS` == 'hg')::
+
+       fab up:my_branch
+
+Full list of commands can be found :doc:`here <reference>`.