Skip to content

Commit

Permalink
prepare to run the server with uwsgi
Browse files Browse the repository at this point in the history
  • Loading branch information
tpokorra committed Jun 18, 2015
1 parent 92a372d commit d9d4299
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions web/lbs.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,5 +319,8 @@ def manageBuildMachines(self, action, buildmachine):
bottle.route('/machines/<action>/<buildmachine>')(myApp.manageBuildMachines)
bottle.route('/css/<filename>')(myApp.css)
bottle.route('/ext/<filepath:path>')(myApp.ext)
ipaddress=socket.gethostbyname(socket.gethostname())
bottle.run(host=ipaddress, port=80, debug=False)
if __name__ == '__main__':
ipaddress=socket.gethostbyname(socket.gethostname())
bottle.run(host=ipaddress, port=80, debug=False)
else:
app = application = bottle.default_app()

0 comments on commit d9d4299

Please sign in to comment.