forked from nityansuman/warren
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunserver.py
23 lines (19 loc) · 814 Bytes
/
runserver.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Copyright 2020 `Kumar Nityan Suman` (https://github.com/nityansuman/).
# All Rights Reserved.
#
# GNU GENERAL PUBLIC LICENSE
# Version 3, 29 June 2007
# Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
# Everyone is permitted to copy and distribute verbatim copies
# of this license document, but changing it is not allowed.
# ==============================================================================
import os
from src import app
if __name__ == "__main__":
HOST = os.environ.get("SERVER_HOST", "localhost")
try:
PORT = int(os.environ.get("SERVER_PORT", "5555"))
except ValueError:
PORT = 1234
app.secret_key = "1cd6f35db029d4b8fc98fc05c9efd06a2e2cd1ffc3774d3f035ebd8d"
app.run(HOST, PORT, debug=True)