diff options
author | Markus Zapke-Grùˆndemann <markus@keimlink.de> | 2012-01-24 03:26:51 +0100 |
---|---|---|
committer | Markus Zapke-Grùˆndemann <markus@keimlink.de> | 2012-01-24 03:26:51 +0100 |
commit | 3f56ff5bfb09f3cf071d023bab97f606d385a637 (patch) | |
tree | 84cff03c9855629a93936be2878e4d0436ea191b /fabfile/__init__.py | |
parent | 1bbb7f7a9ab2096c3e0f3fe3a60bc301bc2d314b (diff) |
add fabfile for easy deployment
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 |