We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 723412c commit c64fbebCopy full SHA for c64fbeb
fabfile.py
@@ -38,9 +38,9 @@ def deploy(c):
38
39
# 安装依赖,迁移数据库,收集静态文件
40
with c.cd(project_root_path):
41
- c.run('pipenv install --deploy --ignore-pipfile')
42
- c.run('pipenv run python manage.py migrate')
43
- c.run('pipenv run python manage.py collectstatic --noinput')
+ c.run('sudo pipenv install --deploy --ignore-pipfile')
+ c.run('sudo pipenv run python manage.py migrate')
+ c.run('sudo pipenv run python manage.py collectstatic --noinput')
44
45
# 重新启动应用
46
with c.cd(supervisor_conf_path):
0 commit comments