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')
评论列表
文章目录