This example demonstrates the integration with the Flask web-framework.
- 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
- 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
startup
time alternates between the time these instances started.app.run(port=5000, host="0.0.0.0", debug=True)