Spaces:
Running
Running
Update entrypoint.sh
Browse files- entrypoint.sh +3 -7
entrypoint.sh
CHANGED
|
@@ -1,12 +1,8 @@
|
|
| 1 |
#!/bin/sh
|
| 2 |
-
|
| 3 |
-
PORT=${PORT:-7860}
|
| 4 |
-
|
| 5 |
if [ "$1" = "--auth" ]; then
|
|
|
|
| 6 |
exec bun run dist/main.js auth
|
| 7 |
else
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
--port $PORT \
|
| 11 |
-
--host 0.0.0.0
|
| 12 |
fi
|
|
|
|
| 1 |
#!/bin/sh
|
|
|
|
|
|
|
|
|
|
| 2 |
if [ "$1" = "--auth" ]; then
|
| 3 |
+
# Run auth command
|
| 4 |
exec bun run dist/main.js auth
|
| 5 |
else
|
| 6 |
+
# Default command
|
| 7 |
+
exec bun run dist/main.js start -g "$GH_TOKEN" "$@"
|
|
|
|
|
|
|
| 8 |
fi
|