fabfile.py 文件源码

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

项目:stregsystemet 作者: f-klubben 项目源码 文件源码
def deploy():
    with cd("/data/stregsystem"):
        sudo("systemctl stop apache2.service")
        with settings(sudo_user='stregsystem'):
            sudo("git pull --ff-only")
            with prefix("source /data/stregsystem/env/bin/activate"):
                sudo("pip install -rrequirements.txt")
                sudo("python manage.py collectstatic --noinput")
                sudo("python manage.py migrate")
        sudo("systemctl start apache2.service")
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号