Skip to content

Commit

Permalink
keep python env directory between installations
Browse files Browse the repository at this point in the history
  • Loading branch information
OriHoch committed May 24, 2017
1 parent e1112b9 commit d8c251e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ def push_code(rev='HEAD', virtualenv=True, requirements=True, cur_date=None):
run('mkdir api')
with cd("api"):
run('tar xzf /tmp/api.tar.gz')
run('rm -rf env')
run('cp -r /tmp/latest-api-{}/env env'.format(cur_date))
if virtualenv:
if not files.exists('env'):
run('virtualenv env')
Expand Down

0 comments on commit d8c251e

Please sign in to comment.