"""Entry point for the beer_data web application. Run in development: python -m beer_data Run in production (what the container does): waitress-serve --listen=0.0.0.0:5000 beer_data:app """ from __future__ import annotations import os from app_factory import create_app app = create_app() # The WSGI callable used by waitress / gunicorn. application = app def main() -> None: """Run the development server.""" host = os.getenv("HOST", "0.0.0.0") port = int(os.getenv("PORT", "5000")) debug = os.getenv("FLASK_DEBUG", "0") == "1" app.run(host=host, port=port, debug=debug) if __name__ == "__main__": main()