9 lines
315 B
Python
9 lines
315 B
Python
"""Allow running backend as module: python -m backend"""
|
|
import os
|
|
from backend.app import app, Scheduler
|
|
|
|
if __name__ == "__main__":
|
|
port = int(os.getenv("PLATFORM_PORT", "5001"))
|
|
print(f"AutoFlow Platform starting... http://127.0.0.1:{port}")
|
|
Scheduler().start()
|
|
app.run(host="0.0.0.0", port=port) |