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