Source

freieit / fabfile.rst

fabric file for freie.it webapp

Author: Albert Dengg <albert@fsfe.org>
Date: 2013-02-24
Manual Section:1

SYNOPSIS

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

DESCRIPTION

-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

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

EXAMPLES

fab -A -H neodym.buergernetzwerk.at update
run testserver update on neodym.buergernetzwerk.at
fab -H neodym.buergernetzwerk.at restart
restart testserver instance on neodym.buergernetzwerk.at
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 ProjectModifiedEvent.java.
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.