Skip to content

Commit c64fbeb

Browse files
committed
fix fabfile bu
1 parent 723412c commit c64fbeb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fabfile.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ def deploy(c):
3838

3939
# 安装依赖,迁移数据库,收集静态文件
4040
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')
41+
c.run('sudo pipenv install --deploy --ignore-pipfile')
42+
c.run('sudo pipenv run python manage.py migrate')
43+
c.run('sudo pipenv run python manage.py collectstatic --noinput')
4444

4545
# 重新启动应用
4646
with c.cd(supervisor_conf_path):

0 commit comments

Comments
 (0)