Skip to content

App.py#88

Open
manass7658 wants to merge 2 commits intoVJBots:TechVJfrom
manass7658:TechVJ-Login
Open

App.py#88
manass7658 wants to merge 2 commits intoVJBots:TechVJfrom
manass7658:TechVJ-Login

Conversation

@manass7658
Copy link

from flask import Flask
import os

app = Flask(name)

@app.route('/')
def hello_world():
return '✅ Server is running fine on the correct port!'

if name == "main":
# ✅ Hosting platform ka PORT le raha hai, local pe 8080 default hoga
port = int(os.environ.get("PORT", 8080))
# ✅ 0.0.0.0 isliye taaki bahar se access ho sake
app.run(host="0.0.0.0", port=port)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant