Skip to content

Commit

Permalink
Use sudo for pip install during deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
asura-asp committed Feb 5, 2016
1 parent 6cec488 commit 9dfb770
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/deploy/fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def _install_requirements():
print('\n\nInstalling requirements...')

with prefix('source %(env_path)s/bin/activate' % env):
run('pip install -r '
sudo('pip install -r '
' %(project_repo_path)s/app/requirements/deploy.txt'
% env)

Expand All @@ -124,7 +124,7 @@ def _update_requirements():
print('\n\nUpdating requirements...')

with prefix('source %(env_path)s/bin/activate' % env):
run('pip install -U -r '
sudo('pip install -U -r '
' %(project_repo_path)s/app/requirements/deploy.txt' % env)

_fix_perms(env.env_path)
Expand Down

0 comments on commit 9dfb770

Please sign in to comment.