Create app.py

This commit is contained in:
racistme 2025-03-22 20:22:18 +03:00 committed by GitHub
parent 56bee93346
commit 26212c1982
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

12
app.py Normal file
View 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)