1 Needed packages: (python3-flask python3-sqlalchemy) python3-mysqldb python3-flask-sqlalchemy
4 FLASK_APP=seepark_web.py FLASK_DEBUG=1 SEEPARKINI=~/seewasser.ini flask run
8 at the end to listen on all interfaces, i.e.
9 FLASK_APP=seepark_web.py FLASK_DEBUG=1 SEEPARKINI=~/seewasser.ini flask run -h 0.0.0.0
10 (or :: instead of 0.0.0.0 for ipv4+ipv6)
14 http://127.0.0.1:5000/
15 or http://<ipaddress>:5000/
16 if the app is running on a different machine
20 notes on a "production" server:
22 needed: python3-waitress
26 1) add to web/seepark_web.py:
27 from waitress import serve
29 if __name__ == "__main__":
31 serve(app, listen='*:5000')
34 SEEPARKINI=~/seewasser.ini python3 web/seepark_web.py
42 add to web/seepark_web.py:
48 SEEPARKINI=~/seewasser.ini waitress-serve --port 8765 --call 'web.seepark_web:create_app'
53 http://flask.pocoo.org/docs/1.0/tutorial/deploy/
54 http://flask.pocoo.org/docs/1.0/tutorial/factory/
55 https://github.com/pallets/flask/blob/1.0.2/examples/tutorial/flaskr/__init__.py
57 https://docs.pylonsproject.org/projects/waitress/en/latest/
58 https://docs.pylonsproject.org/projects/waitress/en/latest/runner.html#runner
60 https://gr33ndata.blogspot.com/2012/01/waitress-flask.html