def deploy(branch='master'):
update_dependencies = confirm('Update dependencies?')
print('OK, deploying branch %s' % branch)
env.sudo_password = getpass('Initial value for env.sudo_password: ')
fetch_sources_from_repo(branch, PROJECT_FOLDER)
if update_dependencies:
reinstall_venv()
install_modules()
start_systemctl_service(UWSGI_SERVICE_NAME)
start_systemctl_service('nginx')
status()
评论列表
文章目录