File tree 6 files changed +37
-4
lines changed
6 files changed +37
-4
lines changed Original file line number Diff line number Diff line change 51
51
/elixir /* /deps /
52
52
/elixir /* /mix.lock
53
53
erl_crash.dump
54
+
55
+ # python
56
+ __pycache__ /
Original file line number Diff line number Diff line change @@ -23,9 +23,10 @@ language:
23
23
WORKER_CLASS : sync
24
24
PYTHON_APP : server:app
25
25
command : >
26
- gunicorn --log-level critical \
27
- --bind 0.0.0.0:3000 \
28
- --reuse-port \
26
+ gunicorn \
27
+ --log-level critical \
28
+ --bind 0.0.0.0:3000 \
29
+ --reuse-port \
29
30
--workers $(nproc) \
30
31
--worker-class ${WORKER_CLASS} \
31
32
${PYTHON_APP}
@@ -56,7 +57,8 @@ language:
56
57
bootstrap :
57
58
- pip install uvicorn[standard]
58
59
command : >
59
- uvicorn --log-level critical \
60
+ uvicorn \
61
+ --log-level critical \
60
62
--host 0.0.0.0 \
61
63
--port 3000 \
62
64
--workers $(nproc) \
@@ -77,6 +79,20 @@ language:
77
79
environment :
78
80
PYTHON_APP : server:app
79
81
command : daphne -b 0.0.0.0 -p 3000 ${PYTHON_APP}
82
+ granian :
83
+ bootstrap :
84
+ - pip install granian
85
+ environment :
86
+ INTERFACE : asgi
87
+ PYTHON_APP : server:app
88
+ command : >
89
+ granian \
90
+ --log-level critical \
91
+ --interface ${INTERFACE} \
92
+ --host 0.0.0.0 \
93
+ --port 3000 \
94
+ --workers $(nproc) \
95
+ ${PYTHON_APP}
80
96
81
97
framework :
82
98
engines :
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ framework:
5
5
engines :
6
6
- gunicorn
7
7
- uwsgi
8
+ - granian
8
9
- uvicorn
9
10
- hypercorn
10
11
- daphne
@@ -17,6 +18,10 @@ language:
17
18
uwsgi :
18
19
environment :
19
20
PYTHON_APP : app.wsgi:application
21
+ granian :
22
+ environment :
23
+ INTERFACE : wsgi
24
+ PYTHON_APP : app.wsgi:application
20
25
daphne :
21
26
environment :
22
27
PYTHON_APP : app.asgi:application
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ framework:
6
6
- uvicorn
7
7
- hypercorn
8
8
- daphne
9
+ - granian
Original file line number Diff line number Diff line change @@ -6,3 +6,10 @@ framework:
6
6
- gunicorn
7
7
- uwsgi
8
8
- waitress
9
+ - granian
10
+
11
+ language :
12
+ engines :
13
+ granian :
14
+ environment :
15
+ INTERFACE : wsgi
Original file line number Diff line number Diff line change @@ -6,3 +6,4 @@ framework:
6
6
- uvicorn
7
7
- hypercorn
8
8
- daphne
9
+ - granian
You can’t perform that action at this time.
0 commit comments