Skip to content

Commit

Permalink
fab
Browse files Browse the repository at this point in the history
  • Loading branch information
generalhenry committed Sep 16, 2013
1 parent ec50e0e commit a0c1c5c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ def checkout_latest():
Pull the latest code on the specified branch.
"""
with cd('api-server'):
run('git reset --hard')
run('git checkout %(branch)s' % env)
run('git pull origin %(branch)s' % env)

Expand All @@ -90,7 +91,8 @@ def make():
"""
Run make
"""
run('cd api-server; make')
with cd('api-server'):
run('make')

def boot():
"""
Expand Down Expand Up @@ -118,8 +120,7 @@ def reboot():
"""
Restart the server.
"""
run('forever stop api-server/server.js')
run('forever stop api-server/lib/scripts/cleanup.js')
run('forever stopall || echo not started')
boot()

"""
Expand Down

0 comments on commit a0c1c5c

Please sign in to comment.