Skip to content
This repository was archived by the owner on Dec 29, 2023. It is now read-only.

Commit b3f0de6

Browse files
authored
Update main.py
1 parent 79c7b36 commit b3f0de6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

main.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from flask import Flask, request
22
import chdb
3+
import os
34

45
app = Flask(__name__, static_folder="public", static_url_path="")
56

@@ -27,4 +28,6 @@ def play():
2728
def handle_404(e):
2829
return app.send_static_file('play.html')
2930

30-
app.run(host="0.0.0.0", port=8123)
31+
host = os.getenv('HOST', '0.0.0.0')
32+
port = os.getenv('PORT', 8123)
33+
app.run(host=host, port=port)

0 commit comments

Comments
 (0)