diff options
Diffstat (limited to 'fabfile/__init__.py')
-rw-r--r-- | fabfile/__init__.py | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/fabfile/__init__.py b/fabfile/__init__.py new file mode 100644 index 0000000..332068c --- /dev/null +++ b/fabfile/__init__.py @@ -0,0 +1,32 @@ +"""subweb deployment package. + +Always prefix a task with the appropriate setup. + +Examples: + + $ fab setups.stage deploy + $ fab setups.production version + $ fab setups.prod load_fixture:fixtures/flatpages.json +""" +from fabric.api import * + +from fabfile import helpers +from fabfile import setups + + +@task +def deploy(): + """Deploys the project. + + Updates the sources, links the appropriate settings, collects the static + files and synchronizes/migrates the database. + + Installing/updating Python packages or loading fixtures needs to be done + manually. + """ + helpers.update_project() + helpers.link_settings() + helpers.collect_static() + helpers.syncdb() + helpers.migrate() + # TODO restart application server |