Skip to content

Commit 98ed249

Browse files
committed
Application port configurable
1 parent 37744a0 commit 98ed249

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

config.dist.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
app:
2+
port: 5000
23
debug: false
34
mysql:
45
host: localhost

run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from activities import app
1+
from activities import app, config
22

33
if __name__ == '__main__':
4-
app.run()
4+
app.run(port=config.get('app').get('port'))

0 commit comments

Comments
 (0)