diff --git a/app.py b/app.py index cb89d57b..99d042e5 100644 --- a/app.py +++ b/app.py @@ -1,10 +1,12 @@ from flask import Flask +import os + app = Flask(__name__) @app.route('/') def hello_world(): return 'Hello from Koyeb' - if __name__ == "__main__": - app.run() + port = int(os.environ.get('PORT', 8000)) # Koyeb ke liye default port 8000 + app.run(host='0.0.0.0', port=port) diff --git a/config.py b/config.py index 49b018ce..984cd45b 100644 --- a/config.py +++ b/config.py @@ -10,7 +10,7 @@ API_HASH = os.environ.get("API_HASH", "") # Your Owner / Admin Id For Broadcast -ADMINS = int(os.environ.get("ADMINS", "6073523936")) +ADMINS = int(os.environ.get("ADMINS", "")) # Your Mongodb Database Url # Warning - Give Db uri in deploy server environment variable, don't give in repo.