Spaces:
Runtime error
Runtime error
Update start.sh
Browse files
start.sh
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
#!/usr/bin/env bash
|
| 2 |
-
# entrypoint for the container — run uvicorn on $PORT
|
| 3 |
set -euo pipefail
|
| 4 |
-
|
|
|
|
| 5 |
exec python3 -m uvicorn app:app --host 0.0.0.0 --port "${PORT}" --workers 1
|
|
|
|
| 1 |
#!/usr/bin/env bash
|
|
|
|
| 2 |
set -euo pipefail
|
| 3 |
+
exec python3 -m uvicorn app:app --host 0.0.0.0 --port ${PORT:-7860} --workers 1
|
| 4 |
+
|
| 5 |
exec python3 -m uvicorn app:app --host 0.0.0.0 --port "${PORT}" --workers 1
|