freieit / fabfile.rst

fabric file for webapp

Author: Albert Dengg <>
Date: 2013-02-24
Manual Section:1


fab [-H hostname] [-A] [--set=KEY=VALUE] [additinonal options] command


-A ssh agent forwarding, needed to to run mercurial commands on the remote host
-H hostname hostname/ssh_config entry of the remote host, defaults to localhost.

—set=KEY=VALUE set key/value pairs for the internal config. For future use for example production=True to deploy to production instance instead of test instance

additinonal options see fab --help

command see section commands


clean remove development db & media files

collectstatic merge all static file sources into the target static folder

deploy update code & db to current revision

fixtures load testdata

install_req install/update requirements in the virtualenv

make_venv build virtualenv

prepare_migration ???

rebuild_venv remove & completly rebuild virtualenv with current requierements

runserver run django server

shell get a shell to the instance

syncdb update db

update update files


fab -A -H update
run testserver update on
fab -H restart
restart testserver instance on
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.