mirror of
https://github.com/philippechataignon/wxscrab_gen
synced 2024-11-15 19:48:05 +01:00
Ajoute gunicorn3 à gen
This commit is contained in:
parent
083d41862b
commit
42cfe9c161
3 changed files with 7 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
FROM alpine:3.11.5
|
FROM alpine:3.11.5
|
||||||
|
|
||||||
RUN apk --update add musl-dev gcc python3 python3-dev scons swig py3-bottle
|
RUN apk --update add musl-dev gcc python3 python3-dev scons swig py3-bottle py3-gunicorn
|
||||||
COPY . /app
|
COPY . /app
|
||||||
RUN ln -sf /usr/bin/python3 /usr/bin/python ;\
|
RUN ln -sf /usr/bin/python3 /usr/bin/python ;\
|
||||||
cd /app/gen ;\
|
cd /app/gen ;\
|
||||||
|
|
1
server/go
Normal file
1
server/go
Normal file
|
@ -0,0 +1 @@
|
||||||
|
gunicorn3 --bind localhost:1964 --workers=4 wsgi:app
|
5
server/wsgi.py
Normal file
5
server/wsgi.py
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
#!/usr/bin/env python3
|
||||||
|
from server import app
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
app.run()
|
Loading…
Reference in a new issue