ameobius commited on
Commit
b218cf1
·
verified ·
1 Parent(s): 9b245f6

Upload start.sh with huggingface_hub

Browse files
Files changed (1) hide show
  1. start.sh +9 -3
start.sh CHANGED
@@ -17,17 +17,23 @@ python3 /app/gen_config.py
17
  # 3. Start picoclaw gateway (if Discord token is set)
18
  if [ -n "$DISCORD_TOKEN" ]; then
19
  echo "3/3: Picoclaw gateway (Discord)"
20
- cd /app
21
- python3 /app/launch_picoclaw.py &
22
  PICO_PID=$!
23
  echo " Picoclaw PID: $PICO_PID"
 
 
 
 
 
 
24
  else
25
  echo "3/3: Picoclaw skipped (no DISCORD_TOKEN)"
26
  fi
27
 
28
  # 4. Start code-server on port 7860
29
  echo " Starting code-server..."
30
- PASSWORD="${PASSWORD:-changeme}" exec code-server --bind-addr 0.0.0.0:7860 \
31
  --auth password \
32
  --disable-telemetry \
33
  --disable-update-check \
 
17
  # 3. Start picoclaw gateway (if Discord token is set)
18
  if [ -n "$DISCORD_TOKEN" ]; then
19
  echo "3/3: Picoclaw gateway (Discord)"
20
+ cd /app/.picoclaw
21
+ nohup /usr/local/bin/picoclaw gateway > /app/picoclaw.log 2>&1 &
22
  PICO_PID=$!
23
  echo " Picoclaw PID: $PICO_PID"
24
+ sleep 3
25
+ if kill -0 $PICO_PID 2>/dev/null; then
26
+ echo " Picoclaw gateway running"
27
+ else
28
+ echo " WARNING: Picoclaw exited early — check /app/picoclaw.log"
29
+ fi
30
  else
31
  echo "3/3: Picoclaw skipped (no DISCORD_TOKEN)"
32
  fi
33
 
34
  # 4. Start code-server on port 7860
35
  echo " Starting code-server..."
36
+ PASSWORD="${PASSWORD:-hermes2026}" exec code-server --bind-addr 0.0.0.0:7860 \
37
  --auth password \
38
  --disable-telemetry \
39
  --disable-update-check \