Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -137,9 +137,17 @@ if __name__ == "__main__":
|
|
137 |
os.makedirs("templates", exist_ok=True)
|
138 |
|
139 |
# Priority: 1. Command line argument, 2. Environment variable, 3. Default (8080)
|
140 |
-
|
141 |
|
142 |
-
logger.info(f"Starting GitHub Navigator on port {port}")
|
143 |
|
144 |
# Run the app
|
145 |
-
app.run(host="0.0.0.0", port=port, debug=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
137 |
os.makedirs("templates", exist_ok=True)
|
138 |
|
139 |
# Priority: 1. Command line argument, 2. Environment variable, 3. Default (8080)
|
140 |
+
# port = args.port if args.port else int(os.environ.get("PORT", 8080))
|
141 |
|
142 |
+
#logger.info(f"Starting GitHub Navigator on port {port}")
|
143 |
|
144 |
# Run the app
|
145 |
+
#app.run(host="0.0.0.0", port=port, debug=True)
|
146 |
+
|
147 |
+
|
148 |
+
port = args.port if args.port else int(os.environ.get("PORT", 7860))
|
149 |
+
|
150 |
+
logger.info(f"Starting GitHub Navigator on port {port}")
|
151 |
+
|
152 |
+
# Run the app (without debug mode for production)
|
153 |
+
app.run(host="0.0.0.0", port=port)
|