Drop gunicorn and bind to 0.0.0.0 (#12)
Reviewed-on: #12 Co-authored-by: Madis Mägi <madis.magi@k-space.ee> Co-committed-by: Madis Mägi <madis.magi@k-space.ee>
This commit is contained in:
		| @@ -5,4 +5,4 @@ COPY requirements.txt ./ | ||||
| RUN pip install -r requirements.txt | ||||
|  | ||||
| COPY *.py ./ | ||||
| CMD ["gunicorn", "--worker-class", "sanic.worker.GunicornWorker", "--workers", "10", "--bind", "[::]:5000", "doorboy:app", "--timeout", "90"] | ||||
| CMD python doorboy.py | ||||
|   | ||||
| @@ -59,4 +59,4 @@ async def view_longpoll(request): | ||||
|     return stream(g, content_type="text/event-stream") | ||||
|  | ||||
| if __name__ == '__main__': | ||||
|     app.run(debug=False, port=5000) | ||||
|     app.run(debug=False, host='0.0.0.0', port=5000) | ||||
|   | ||||
| @@ -1,3 +1,2 @@ | ||||
| gunicorn | ||||
| sanic | ||||
| motor | ||||
|   | ||||
		Reference in New Issue
	
	Block a user