1
0
mirror of https://github.com/RaidMax/IW4M-Admin.git synced 2025-06-08 14:18:20 -05:00
IW4M-Admin/GameLogServer/runserver.py
2019-02-09 21:24:54 -06:00

16 lines
387 B
Python

"""
This script runs the GameLogServer application using a development server.
"""
from os import environ
from GameLogServer.server import app, init
if __name__ == '__main__':
HOST = environ.get('SERVER_HOST', '0.0.0.0')
try:
PORT = int(environ.get('SERVER_PORT', '1625'))
except ValueError:
PORT = 5555
init()
app.run('0.0.0.0', PORT, debug=False)