matekasse/main.py

19 lines
425 B
Python
Raw Normal View History

2024-02-21 17:54:55 +00:00
from venv import create
from Website import create_app
from flask_socketio import SocketIO
import atexit, sqlite3, sys, datetime, logging
2024-02-21 22:36:32 +00:00
app_data = create_app()
app = app_data["app"]
2024-02-21 17:54:55 +00:00
def exit_handler():
sys.exit("Program sucsesfully exited")
def main():
socketio = app_data["socketio"]
atexit.register(exit_handler)
socketio.run(app, host='0.0.0.0', port=5000)
if __name__ == "__main__":
main()