From 503673ebb9ed605404edf36792a9e637e6c74299 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arne=20Schl=C3=BCter?= Date: Tue, 10 Feb 2015 18:11:22 +0100 Subject: [PATCH] Read port from environment variable --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index d28c139..2389a93 100644 --- a/server.py +++ b/server.py @@ -1,6 +1,7 @@ import bottle import sqlite3 import json +import @bottle.get("/") def index(): @@ -55,4 +56,4 @@ def server_static(filepath): return bottle.static_file(filepath, root='static/') if __name__ == "__main__": - bottle.run(host="localhost", port=12345, reloader=True, debug=True) + bottle.run(host="localhost", port=os.environ.get('OPEN_DATA_PORT', 12345), reloader=True, debug=True)