fabfile.py
from fabric_verbose import verbose
# ...
def deploy():
with verbose("Discarding local changes") as v:
v.run('git reset HEAD; git clean -fd; git checkout .')
with verbose("Pulling source code") as v:
v.run('git pull')
with verbose("Installing requirements") as v:
v.run('pip install -r requirements.txt')
with verbose("Starting") as v:
v.run('fab start')
Output
* Discarding local changes... Done * Pulling source code... Done * Installing requirements... Done * Starting... Failed Fatal error: /bin/sh: uwsgi: command not found Aborting.
$ pip install fabric-verbose