Spaces:
Sleeping
Sleeping
Update server.py
Browse files
server.py
CHANGED
|
@@ -50,9 +50,9 @@ def index():
|
|
| 50 |
)).mappings().all()
|
| 51 |
return render_template("index.html", notes=rows)
|
| 52 |
|
| 53 |
-
if __name__ == "__main__":
|
| 54 |
-
|
| 55 |
-
|
| 56 |
|
| 57 |
@app.get("/")
|
| 58 |
def index():
|
|
|
|
| 50 |
)).mappings().all()
|
| 51 |
return render_template("index.html", notes=rows)
|
| 52 |
|
| 53 |
+
if __name__ == "__main__": # Sprawdzamy, czy uruchamiamy g艂贸wny skrypt
|
| 54 |
+
port = int(os.environ.get("PORT", "7860")) # Wci臋cie pod warunkiem
|
| 55 |
+
app.run(host="0.0.0.0", port=port, debug=False) # Wci臋cie pod warunkiem
|
| 56 |
|
| 57 |
@app.get("/")
|
| 58 |
def index():
|