imspsycho commited on
Commit
990fdd3
·
verified ·
1 Parent(s): 780d695

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. 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
- exec bun run dist/main.js start \
9
- -g "$GH_TOKEN" \
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