imseldrith commited on
Commit
f7efad2
·
verified ·
1 Parent(s): d2b31db

Update entrypoint.sh

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