fabfile.py 文件源码

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

项目:crestify 作者: crestify 项目源码 文件源码
def config_environment():
    sudo('apt-get -y install git screen')
    sudo('adduser crestify --disabled-password --gecos GECOS')
    sudo('locale-gen en_US.UTF-8')
    with settings(sudo_user='crestify', shell='/bin/bash -c'):
        with cd('/home/crestify'):
            sudo('git clone https://github.com/crestify/crestify.git crestify')
            sudo('virtualenv crestifyenv')
            with prefix('source crestifyenv/bin/activate'):
                sudo('pip install -r crestify/requirements.txt')
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号