質問編集履歴
1
追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -35,3 +35,29 @@
|
|
35
35
|
|
36
36
|
|
37
37
|
```
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
```python
|
42
|
+
|
43
|
+
import os
|
44
|
+
|
45
|
+
from xxx import create_app
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
if os.environ.get("DEBUG"):
|
50
|
+
|
51
|
+
logging.basicConfig(level=logging.DEBUG)
|
52
|
+
|
53
|
+
config = os.environ.get("CONFIG", "local")
|
54
|
+
|
55
|
+
app = create_app(config)
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
if __name__ == '__main__':
|
60
|
+
|
61
|
+
app.run(host='127.0.0.1', port=8080, debug=True, threaded=True)
|
62
|
+
|
63
|
+
```
|