织物冗长
fabric-verbose的Python项目详细描述
一目了然
fabfile.py
fromfabric_verboseimportverbose# ...defdeploy():withverbose("Discarding local changes")asv:v.run('git reset HEAD; git clean -fd; git checkout .')withverbose("Pulling source code")asv:v.run('git pull')withverbose("Installing requirements")asv:v.run('pip install -r requirements.txt')withverbose("Starting")asv:v.run('fab start')
输出
* 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