aboutsummaryrefslogtreecommitdiff
path: root/api/main.py
blob: 4c043f60b65e89ccdfc0d8a256423891051abf95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import dynamic_import
from app import app
from dotenv import load_dotenv
from os import environ

from socket_io import io
import game.socket

load_dotenv()

# start the flask/socket.io server
if __name__ == "__main__":
    io.run(
        app,
        host="127.0.0.1",
        port=5000,
        debug=bool(int(environ["CONNECT4_DEBUG"]))
    )