Skip to content

Commit db797a9

Browse files
Revert "testing 2"
This reverts commit a5fe49a.
1 parent 7232c0c commit db797a9

4 files changed

Lines changed: 17 additions & 0 deletions

File tree

CTFd/plugins/LuaUtils

Submodule LuaUtils added at 537c218

CTFd/plugins/inlineTranslation

Submodule inlineTranslation added at 54846e3

CTFd/plugins/userchallenge

Submodule userchallenge added at edcd019

wsgi.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import os
2+
3+
# Detect if we're running via `flask run` and don't monkey patch
4+
if not os.getenv("FLASK_RUN_FROM_CLI"):
5+
from gevent import monkey
6+
7+
monkey.patch_all()
8+
9+
from CTFd import create_app
10+
11+
app = create_app()
12+
13+
if __name__ == "__main__":
14+
app.run(debug=True, threaded=True, host="127.0.0.1", port=4000)

0 commit comments

Comments
 (0)