Prepare app for Heroku.

This commit is contained in:
Kevin Dungs 2014-11-17 15:16:43 +01:00
parent 160ee4473b
commit 8eeea4b7d3
1 changed files with 2 additions and 1 deletions

3
app.py
View File

@ -24,4 +24,5 @@ def showMap(threewords):
if __name__ == '__main__':
run(host='localhost', port=8080)
import os
run(host='0.0.0.0', port=int(os.environ.get("PORT", 5000)))