Skip to content

Commit

Permalink
Fix deploy target;
Browse files Browse the repository at this point in the history
  • Loading branch information
naspeh committed Oct 16, 2013
1 parent 88f55ec commit ed86045
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions manage.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ def process_args():
.arg('-c', '--clear', action='store_true', help='clear virtualenv')\
.arg('-t', '--target', default='origin/master', help='checkout it')\
.exe(lambda a: ssh(
'cd /home/pusto/src' +
'cd /home/pusto/src'
'&& git fetch origin' +
'&& git checkout {target}'.format(a.target) +
'&& source $(cat .venv)/bin/activate' +
'&& virtualenv --clear $(echo $VIRTUAL_ENV)' if a.clear else '' +
'&& ./bootstrap' +
'&& ./pusto.py build -b build-tmp' +
'&& rm -rf build' +
'&& mv build-tmp build' +
('&& virtualenv --clear $(echo $VIRTUAL_ENV)' if a.clear else '') +
'&& ./bootstrap'
'&& ./pusto.py build -b build-tmp'
'&& rm -rf build'
'&& mv build-tmp build'
'&& systemctl restart nginx.service'
))

Expand Down

0 comments on commit ed86045

Please sign in to comment.