26 lines
486 B
Python
26 lines
486 B
Python
"""Sales Trainer backend — Flask app factory entry."""
|
|
from __future__ import annotations
|
|
|
|
import os
|
|
import sys
|
|
|
|
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
|
|
|
from app import create_app # noqa: E402
|
|
from app.config import Config # noqa: E402
|
|
|
|
app = create_app()
|
|
|
|
|
|
def main() -> None:
|
|
app.run(
|
|
host=Config.FLASK_HOST,
|
|
port=Config.FLASK_PORT,
|
|
debug=Config.FLASK_DEBUG,
|
|
threaded=True,
|
|
)
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|