Commit 8d56baf4 authored by Christian Elberfeld's avatar Christian Elberfeld

gunicorn based docker

parent 0883bf1b
......@@ -13,8 +13,7 @@ RUN pip3 install --upgrade pip
RUN pip3 install \
flask==1.0.2 \
flask_mqtt \
pytz \
uwsgi \
gunicorn \
# start Script
......@@ -5,4 +5,5 @@ export
export FLASK_ENV=production
cd /opt/warpapi/
uwsgi --uid=www-data --gid=www-data --socket --protocol=http -w wsgi:app
exec gunicorn -b :5000 warpapi:app
#flask run --host=
import datetime
import pytz
from flask import Flask
from flask import request
from flask import redirect
from warpapi import app
if __name__ == "__main__":
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment