Skip to content

Commit

Permalink
fix a bug in dockerization
Browse files Browse the repository at this point in the history
  • Loading branch information
cairijun committed Oct 27, 2014
1 parent bbf7013 commit 19fcc8f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerrun.aws.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"AWSEBDockerrunVersion": 1,
"AWSEBDockerrunVersion": 1
}
4 changes: 3 additions & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@


if __name__ == '__main__':
server = WSGIServer(('localhost', 5000), app)
if '-s' not in sys.argv:
server = WSGIServer(('localhost', 5000), app)
server.start()
webbrowser.open('http://localhost:5000')
else:
server = WSGIServer(('0.0.0.0', 5000), app)
server.serve_forever() # just wait but not start the server *again*

0 comments on commit 19fcc8f

Please sign in to comment.