X-Git-Url: https://git.toastfreeware.priv.at/chrisu/seepark.git/blobdiff_plain/b986a4736e1027ea0f74e14f040c8241cb5760f7..ccb3c34991eaa25ee188658218fabc5d710465d3:/web/README diff --git a/web/README b/web/README index cb74f0d..0ac72d1 100644 --- a/web/README +++ b/web/README @@ -3,10 +3,34 @@ Needed packages: (python3-flask python3-sqlalchemy) python3-mysqldb python3-flas Start with: FLASK_APP=seepark_web.py FLASK_DEBUG=1 SEEPARKINI=~/seewasser.ini flask run +Option: +-h 0.0.0.0 +at the end to listen on all interfaces, i.e. +FLASK_APP=seepark_web.py FLASK_DEBUG=1 SEEPARKINI=~/seewasser.ini flask run -h 0.0.0.0 +(or :: instead of 0.0.0.0 for ipv4+ipv6) + + Go to: http://127.0.0.1:5000/ +or http://:5000/ +if the app is running on a different machine -Option: --h 0.0.0.0 -to listen on all interfaces +--- + +notes on a "production" server: + +needed: python3-waitress + +run (in folder web): +SEEPARKINI=~/seewasser.ini waitress-serve --port 8765 'seepark_web:app' + +links: + +http://flask.pocoo.org/docs/1.0/tutorial/deploy/ +http://flask.pocoo.org/docs/1.0/tutorial/factory/ +https://github.com/pallets/flask/blob/1.0.2/examples/tutorial/flaskr/__init__.py + +https://docs.pylonsproject.org/projects/waitress/en/latest/ +https://docs.pylonsproject.org/projects/waitress/en/latest/runner.html#runner +https://gr33ndata.blogspot.com/2012/01/waitress-flask.html