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