Skip to content

Commit

Permalink
Correction to be in the correct path
Browse files Browse the repository at this point in the history
  • Loading branch information
jba-zen committed May 30, 2013
1 parent dd3b9b0 commit 74f2900
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

play_path = parser.get('play', 'path')

play_app_git = parser.get('application','git')
play_app_git = parser.get('application', 'git')
play_app_path = parser.get('application', 'path')
play_app_port = parser.get('application', 'port')
play_app_apply_evolutions = parser.get('application', 'apply_evolutions')
Expand Down Expand Up @@ -86,6 +86,10 @@ def main():
print ""

elif not(isRunning()):
#go in the work directory
previous = os.getcwd()
os.chdir(env)

print ""
print "\t ~ Start of alreday checked out application start "
print ""
Expand All @@ -94,6 +98,9 @@ def main():
print "\t ~ has been successfuly deployed !"
print ""

#go back in our current directory
os.chdir(previous)

time.sleep(int(poll_delay));


Expand Down

0 comments on commit 74f2900

Please sign in to comment.