mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 14:04:20 +01:00
5ce3003b Merge pull request #47 from aCursedComrade/patch-1 c9887cb1 Fix team template git-subtree-dir: CTFd/themes/core-beta git-subtree-split: 5ce3003b4d68352e629ee2d390bc999e7d6b071e
15 lines
315 B
Python
15 lines
315 B
Python
import os
|
|
|
|
# Detect if we're running via `flask run` and don't monkey patch
|
|
if not os.getenv("FLASK_RUN_FROM_CLI"):
|
|
from gevent import monkey
|
|
|
|
monkey.patch_all()
|
|
|
|
from CTFd import create_app
|
|
|
|
app = create_app()
|
|
|
|
if __name__ == "__main__":
|
|
app.run(debug=True, threaded=True, host="127.0.0.1", port=4000)
|