mirror of
https://github.com/spiral-project/ihatemoney.git
synced 2025-04-28 17:32:38 +02:00
Create app.py
This commit is contained in:
parent
56bee93346
commit
26212c1982
1 changed files with 12 additions and 0 deletions
12
app.py
Normal file
12
app.py
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
import os
|
||||||
|
from flask import Flask
|
||||||
|
|
||||||
|
app = Flask(__name__)
|
||||||
|
|
||||||
|
@app.route('/')
|
||||||
|
def home():
|
||||||
|
return "Hello from Render!"
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
port = int(os.environ.get("PORT", 80)) # Default to port 80 if PORT isn't set
|
||||||
|
app.run(host='0.0.0.0', port=port)
|
Loading…
Reference in a new issue