import os from reverse import app if __name__ == '__main__': port = int(os.environ.get('PORT', 5000)) app.run(debug=True)
# run.py import os from reverse import app if __name__ == "__main__": port = int(os.environ.get('PORT', 5000)) # app.run(host='0.0.0.0', port=port) app.run(host='0.0.0.0', port=port, debug=True)
import os from reverse import app if __name__ == "__main__": port = int(os.environ.get("PORT", 5000)) app.run(debug=True)
from reverse import app import os if __name__ == "__main__": FLASK_CI = os.getenv("FLASK_CI") if not FLASK_CI: app.run(debug=True, port=5000) else: print("FLASK_CI: app.run() would have worked.")