create-openclaw-bot 5.6.10 → 5.6.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -283,7 +283,7 @@ fi
283
283
  } else {
284
284
  L.push(isVi ? 'echo "[2] Khoi dong lai OpenClaw gateway qua PM2..."' : 'echo "[2] Restarting OpenClaw gateway via PM2..."');
285
285
  L.push('pm2 delete "$APP_NAME" >/dev/null 2>&1 || true');
286
- L.push('pm2 start openclaw --name "$APP_NAME" --cwd "$PROJECT_DIR" -- gateway run');
286
+ L.push('OPENCLAW_HOME="$PROJECT_DIR/.openclaw" OPENCLAW_STATE_DIR="$PROJECT_DIR/.openclaw" pm2 start --name "$APP_NAME" --cwd "$PROJECT_DIR" -- sh -c "export OPENCLAW_HOME=$PROJECT_DIR/.openclaw OPENCLAW_STATE_DIR=$PROJECT_DIR/.openclaw && openclaw gateway run"');
287
287
  }
288
288
  L.push('pm2 save >/dev/null 2>&1 || true');
289
289
  L.push('echo ""');
package/dist/setup.js CHANGED
@@ -1586,7 +1586,7 @@
1586
1586
  } else {
1587
1587
  L.push(isVi ? 'echo "[2] Khoi dong lai OpenClaw gateway qua PM2..."' : 'echo "[2] Restarting OpenClaw gateway via PM2..."');
1588
1588
  L.push('pm2 delete "$APP_NAME" >/dev/null 2>&1 || true');
1589
- L.push('pm2 start openclaw --name "$APP_NAME" --cwd "$PROJECT_DIR" -- gateway run');
1589
+ L.push('OPENCLAW_HOME="$PROJECT_DIR/.openclaw" OPENCLAW_STATE_DIR="$PROJECT_DIR/.openclaw" pm2 start --name "$APP_NAME" --cwd "$PROJECT_DIR" -- sh -c "export OPENCLAW_HOME=$PROJECT_DIR/.openclaw OPENCLAW_STATE_DIR=$PROJECT_DIR/.openclaw && openclaw gateway run"');
1590
1590
  }
1591
1591
  L.push('pm2 save >/dev/null 2>&1 || true');
1592
1592
  L.push('echo ""');
@@ -3654,7 +3654,7 @@
3654
3654
  vps.push('PORT=20128 HOSTNAME=0.0.0.0 pm2 start "$NINE_ROUTER_ENTRY" --name openclaw-multibot-9router --interpreter "$(command -v node)"');
3655
3655
  vps.push('pm2 start --name openclaw-multibot-9router-sync -- sh -c "node ./.9router/9router-smart-route-sync.js"');
3656
3656
  }
3657
- vps.push('pm2 start --name openclaw-multibot -- sh -c "openclaw gateway run"');
3657
+ vps.push('OPENCLAW_HOME="$OPENCLAW_HOME" OPENCLAW_STATE_DIR="$OPENCLAW_STATE_DIR" pm2 start --name openclaw-multibot -- sh -c "export OPENCLAW_HOME=$OPENCLAW_HOME OPENCLAW_STATE_DIR=$OPENCLAW_STATE_DIR && openclaw gateway run"');
3658
3658
  vps.push('pm2 save && pm2 startup');
3659
3659
  vps.push(`echo ""`);
3660
3660
  vps.push(`echo "=== ✅ Shared multi-bot gateway running via PM2 ==="`);
@@ -3670,7 +3670,7 @@
3670
3670
  vps.push('PORT=20128 HOSTNAME=0.0.0.0 pm2 start "$NINE_ROUTER_ENTRY" --name openclaw-9router --interpreter "$(command -v node)"');
3671
3671
  vps.push('pm2 start --name openclaw-9router-sync -- sh -c "node ./.9router/9router-smart-route-sync.js"');
3672
3672
  }
3673
- vps.push('pm2 start --name openclaw -- sh -c "openclaw gateway run"');
3673
+ vps.push('OPENCLAW_HOME="$OPENCLAW_HOME" OPENCLAW_STATE_DIR="$OPENCLAW_STATE_DIR" pm2 start --name openclaw -- sh -c "export OPENCLAW_HOME=$OPENCLAW_HOME OPENCLAW_STATE_DIR=$OPENCLAW_STATE_DIR && openclaw gateway run"');
3674
3674
  vps.push('pm2 save && pm2 startup');
3675
3675
  vps.push('echo "Bot dang chay! Xem log: pm2 logs openclaw"');
3676
3676
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-openclaw-bot",
3
- "version": "5.6.10",
3
+ "version": "5.6.12",
4
4
  "description": "Interactive CLI installer for OpenClaw Bot",
5
5
  "main": "dist/cli.js",
6
6
  "bin": {