Test shutdown.
This commit is contained in:
parent
2d3c87fd75
commit
17aaa750e9
@ -8,4 +8,4 @@ RUN pip install flask-restx==1.3.0
|
||||
WORKDIR /root
|
||||
COPY thermostat.py /root/
|
||||
ENV FLASK_APP thermostat.py
|
||||
ENTRYPOINT ["/usr/bin/gunicorn", "thermostat:app"]
|
||||
ENTRYPOINT ["/usr/bin/gunicorn", "thermostat:gunicorn_app"]
|
||||
|
@ -388,6 +388,7 @@ xprint('toto')
|
||||
t1 = Thread(target=thermostat_loop)
|
||||
#t1.daemon = True
|
||||
t1.start()
|
||||
gunicorn_app = app
|
||||
t1.join()
|
||||
exit(0)
|
||||
# app.run(host='0.0.0.0', port=3002)
|
||||
|
Loading…
Reference in New Issue
Block a user