mirror of
https://github.com/heyarne/berliner-winter.git
synced 2026-05-06 19:23:39 +02:00
Read port from environment variable
This commit is contained in:
parent
75edc484de
commit
503673ebb9
1 changed files with 2 additions and 1 deletions
|
|
@ -1,6 +1,7 @@
|
||||||
import bottle
|
import bottle
|
||||||
import sqlite3
|
import sqlite3
|
||||||
import json
|
import json
|
||||||
|
import
|
||||||
|
|
||||||
@bottle.get("/")
|
@bottle.get("/")
|
||||||
def index():
|
def index():
|
||||||
|
|
@ -55,4 +56,4 @@ def server_static(filepath):
|
||||||
return bottle.static_file(filepath, root='static/')
|
return bottle.static_file(filepath, root='static/')
|
||||||
|
|
||||||
if __name__ == "__main__":
|
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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue