def setup_system():
"""Setup the system dependencies and repo.
"""
add_apt('fkrull/deadsnakes')
apt_install(
'emacs-nox',
'python3.6-dev',
'python3.6-gdbm',
'python3.6-venv',
'nginx',
'nginx-core',
'screen',
'gcc',
'libssl-dev',
)
ensure_venv('combine')
sudo('mkdir -p /tmp/gunicorn_run')
sudo('chmod 777 /tmp/gunicorn_run')
restart_nginx()
sudo('mkdir -p /var/run/watch-ip')
sudo('chmod 777 /var/run/watch-ip')
评论列表
文章目录