8900 commited on
Commit
f6e0a03
·
verified ·
1 Parent(s): ed8238f

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +3 -3
entrypoint.sh CHANGED
@@ -1,7 +1,7 @@
1
  #!/bin/sh
2
  set -e
3
 
4
- # 设置 OPENCLAW_HOME
5
  if mkdir -p /data/.openclaw 2>/dev/null; then
6
  export OPENCLAW_HOME=/data
7
  else
@@ -9,10 +9,10 @@ else
9
  mkdir -p /home/user/.openclaw
10
  fi
11
 
12
- # 执行配置脚本
13
  node /app/setup-hf-config.mjs
14
 
15
- # 启动 gateway,绑定所有接口,保证 HF 前端可以访问
16
  exec node /app/openclaw.mjs gateway \
17
  --allow-unconfigured \
18
  --bind 0.0.0.0 \
 
1
  #!/bin/sh
2
  set -e
3
 
4
+ # 1. 设置 OPENCLAW_HOME
5
  if mkdir -p /data/.openclaw 2>/dev/null; then
6
  export OPENCLAW_HOME=/data
7
  else
 
9
  mkdir -p /home/user/.openclaw
10
  fi
11
 
12
+ # 2. 执行 HF 配置脚本,生成 openclaw.json
13
  node /app/setup-hf-config.mjs
14
 
15
+ # 3. 启动 gateway,强制绑定 0.0.0.0
16
  exec node /app/openclaw.mjs gateway \
17
  --allow-unconfigured \
18
  --bind 0.0.0.0 \