matekasse/main.py

20 lines
478 B
Python
Raw Normal View History

2023-07-28 23:29:33 +02:00
from venv import create
from Website import create_app
from flask_socketio import SocketIO
import atexit, sqlite3, sys, datetime, logging
2023-05-31 20:33:45 +02:00
2023-09-13 20:14:14 +02:00
app_data = create_app()
app = app_data["app"]
2023-07-28 23:29:33 +02:00
def exit_handler():
2023-05-31 20:33:45 +02:00
sys.exit("Program sucsesfully exited")
def main():
2023-07-28 23:29:33 +02:00
app_data = create_app()
app = app_data["app"]
socketio = app_data["socketio"]
atexit.register(exit_handler)
2023-09-06 21:26:39 +02:00
socketio.run(app, host='0.0.0.0', port=5000)
2023-07-28 23:29:33 +02:00
if __name__ == "__main__":
main()