From 8eeea4b7d3a193edec00a8f66fc035e3401499bb Mon Sep 17 00:00:00 2001 From: Kevin Dungs Date: Mon, 17 Nov 2014 15:16:43 +0100 Subject: [PATCH] Prepare app for Heroku. --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index 97a7e62..93ccca7 100755 --- a/app.py +++ b/app.py @@ -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)))