2023-04-19 23:48:59 +02:00
|
|
|
import sentry_sdk
|
|
|
|
from sentry_sdk.integrations.flask import FlaskIntegration
|
|
|
|
from waitress import serve
|
|
|
|
|
|
|
|
from app import create_app
|
|
|
|
from config import Configuration
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
if Configuration.SENTRY_DSN:
|
|
|
|
sentry_sdk.init(
|
|
|
|
dsn=Configuration.SENTRY_DSN,
|
|
|
|
integrations=[FlaskIntegration()]
|
|
|
|
)
|
|
|
|
|
|
|
|
app, app_mgr = create_app()
|
2023-04-20 02:33:36 +02:00
|
|
|
serve(app, host="0.0.0.0", port=8000)
|