servers.py 文件源码

python
阅读 23 收藏 0 点赞 0 评论 0

项目:django-starter-kit 作者: nprapps 项目源码 文件源码
def fabcast(command):
    """
    Actually run specified commands on the server specified
    by staging() or production().
    """
    require('settings', provided_by=['production', 'staging'])

    if not app_config.DEPLOY_TO_SERVERS:
        logging.error('You must set DEPLOY_TO_SERVERS = True in your app_config.py and setup a server before fabcasting.')

    run('cd %s && bash run_on_server.sh fab %s $DEPLOYMENT_TARGET %s' % (app_config.SERVER_REPOSITORY_PATH, env.branch, command))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号