imspsycho commited on
Commit
1071749
·
verified ·
1 Parent(s): 97a73c4

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +9 -5
entrypoint.sh CHANGED
@@ -1,8 +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
- # Default command
7
- exec bun run dist/main.js start -p 7860 -g "$GH_TOKEN" "$@"
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