Note
This is auto-generated API reference. Don’t expect much from it.
[source] links are most useful.
Warning
django-fab-deploy is still at early stages of development and API may change in future.
Runs migrate management command. Database backup is performed before migrations if do_backup=False is not passed.
Runs django management command. Example:
fab manage:createsuperuser
Runs ‘runtests.sh’ script from project root. Example runtests.sh content:
#!/bin/sh
default_tests='accounts forum firms blog'
if [ $# -eq 0 ]
then
./manage.py test $default_tests --settings=test_settings
else
./manage.py test $* --settings=test_settings
fi
Updates config.py on server (using config.server.py)
Runs vcs up or checkout command on server and reloads mod_wsgi process.
Run it instead of your VCS push command.
The following strings are allowed as positional arguments:
Keyword arguments:
Customization example can be found here.
Shuts site down. This command doesn’t clean everything, e.g. user data (database, backups) is preserved.
Creates linux account, setups ssh access and pip.conf file.
Example:
fab create_linux_account:"/home/kmike/.ssh/id_rsa.pub"
Creates linux account, setups ssh access and adds the created user to sudoers. This command requires root ssh access.
Installs pip requirements listed in <PIP_REQUIREMENTS_PATH>/<file>.txt file.
Executes passed sql command using mysql shell.
Creates an empty mysql database.
Adds line to crontab. Line can be appended with special marker comment so it’ll be possible to reliably remove or update it later.