11 lines
308 B
Python
11 lines
308 B
Python
import os
|
|
from mikromon import create_app, socketio
|
|
|
|
app = create_app()
|
|
|
|
if __name__ == "__main__":
|
|
host = os.getenv("HOST", "127.0.0.1")
|
|
port = int(os.getenv("PORT", "5000"))
|
|
debug = os.getenv("FLASK_ENV", "development") == "development"
|
|
socketio.run(app, host=host, port=port, debug=debug)
|