def package():
""" [deploy] Creates a deployment package. """
branch, summary, version = _get_versioning_metadata()
# Builds the deployment package.
local('fpm -s dir -t deb -n endagaweb -a all -v %(version)s \
--description "%(branch)s: %(cs)s" \
-d byobu -d nginx -d python-pip -d python-dev \
-d libpq-dev -d git -d supervisor \
--after-install configs/deployment/endagaweb-postinst \
endagaweb=/var/www ../common/ccm=/var/www \
requirements.txt=/var/opt/ \
sason=/var/www settings.py=/var/www urls.py=/var/www \
manage.py=/var/www/ configs/nginx.conf=/etc/nginx/sites-enabled/ \
configs/uwsgi.conf=/etc/init/ \
configs/endagaweb.ini=/etc/uwsgi/apps-enabled/ \
configs/celeryd.conf=/etc/supervisor/conf.d/ \
configs/celerybeat.conf=/etc/supervisor/conf.d/ \
configs/celerystick.conf=/etc/supervisor/conf.d/' \
% {'branch': branch, 'cs': summary, 'version': version})
return version
fabfile.py 文件源码
python
阅读 19
收藏 0
点赞 0
评论 0
评论列表
文章目录