mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 04:01:32 -06:00
fine tune tracker
This commit is contained in:
@@ -8,6 +8,7 @@ from waitress import serve
|
||||
from WebHost.models import db
|
||||
|
||||
DEBUG = False
|
||||
port = 80
|
||||
|
||||
if __name__ == "__main__":
|
||||
multiprocessing.freeze_support()
|
||||
@@ -26,6 +27,6 @@ if __name__ == "__main__":
|
||||
db.bind(**app.config["PONY"])
|
||||
db.generate_mapping(create_tables=True)
|
||||
if DEBUG:
|
||||
app.run(debug=True)
|
||||
app.run(debug=True, port=port)
|
||||
else:
|
||||
serve(app, port=80, threads=1)
|
||||
serve(app, port=port, threads=1)
|
||||
|
Reference in New Issue
Block a user