Flask example
October 22, 2021 ยท View on GitHub
This example demonstrates the integration with the Flask web-framework.
Running the example
- Start an instance of SBA (Spring Boot Admin):
docker run --rm -p 8080:8080 --add-host=host.docker.internal:host-gateway michayaak/spring-boot-admin:2.2.3-1 - Once Spring Boot Admin is running, you can run the examples as follow:
cd examples/Flask poetry install poetry run python -m flask_example_app

Notes
- Note that when Flask debugging is enabled, Pyctuator and Flask are initialized twice because Flask reloads the script. This causes Pyctuator to register twice thus the
startuptime alternates between the time these instances started.app.run(port=5000, host="0.0.0.0", debug=True)