This commit is contained in:
parent
09d3d8684c
commit
9cd3803b61
@ -14,7 +14,7 @@ FROM python:3.11-alpine
|
|||||||
COPY glebby-server /glebby-server
|
COPY glebby-server /glebby-server
|
||||||
WORKDIR /glebby-server
|
WORKDIR /glebby-server
|
||||||
RUN pip install -r requirements.txt
|
RUN pip install -r requirements.txt
|
||||||
RUN pip install gunicorn
|
RUN pip install hypercorn
|
||||||
COPY --from=frontend /glebby-client/static /glebby-server/static
|
COPY --from=frontend /glebby-client/static /glebby-server/glebby/static
|
||||||
|
|
||||||
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--threads", "100", "glebby:app"]
|
CMD ["hypercorn", "--bind", "0.0.0.0:5000", "glebby:app"]
|
||||||
|
3
TODO.md
3
TODO.md
@ -1,5 +1,6 @@
|
|||||||
- [ ] composition api
|
- [ ] composition api
|
||||||
- [ ] quart
|
- [x] quart
|
||||||
|
- [x] fix dockerfile
|
||||||
- [ ] lobby
|
- [ ] lobby
|
||||||
- [ ] actual game logic
|
- [ ] actual game logic
|
||||||
- [ ] websocket url config
|
- [ ] websocket url config
|
||||||
|
@ -12,6 +12,10 @@ async def send_outgoing(queue):
|
|||||||
data = await queue.get()
|
data = await queue.get()
|
||||||
await websocket.send(data)
|
await websocket.send(data)
|
||||||
|
|
||||||
|
@app.route('/')
|
||||||
|
async def root():
|
||||||
|
return await app.send_static_file('index.html')
|
||||||
|
|
||||||
@app.websocket('/glebby')
|
@app.websocket('/glebby')
|
||||||
async def ws():
|
async def ws():
|
||||||
global model
|
global model
|
||||||
|
Loading…
x
Reference in New Issue
Block a user