Reference¶
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.
Django¶
Deployment¶
-
fab_deploy.system.
create_linux_account
[source]¶ Creates linux account, setups ssh access and pip.conf file.
Example:
fab create_linux_account:"/home/kmike/.ssh/id_rsa.pub"
-
fab_deploy.system.
create_sudo_linux_account
[source]¶ Creates linux account, setups ssh access and adds the created user to sudoers. This command requires root ssh access.
-
fab_deploy.system.
ssh_add_key
[source]¶ Adds a ssh key from passed file to user’s authorized_keys on server.
Virtualenv/pip¶
MySQL¶
Working with crontab¶
-
fab_deploy.crontab.
add_line
[source]¶ Adds line to crontab. Line can be appended with special marker comment so it’ll be possible to reliably remove or update it later.
-
fab_deploy.crontab.
add_management
[source]¶ Adds django management command to crontab.
when
- crontab’s ‘when’ part (m h dom mon dow)command
- django management command (with all options)marker
- unique marker for future command updating or removing
Example:
$ fab crontab_add_management:"0 0 * * *","cleanup"