This sandbox ships with no Python/Node/Docker/browser and no sudo, so the bulk of this is setup.sh: bootstrap Python via uv, then get Playwright's Chromium (and tmux, also missing) working by extracting their .deb dependencies non-root instead of apt-get install. driver.py is a small Playwright REPL standing in for chromium-cli, which isn't available here either. Also carves out .claude/skills/ from the blanket .claude/ gitignore -- skills are shared project tooling, not personal/local state.
11 lines
302 B
Bash
Executable File
11 lines
302 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Usage: ./stop-server.sh [scratch-dir]
|
|
SCRATCH="${1:-/tmp/run-server-scratch}"
|
|
if [ -f "$SCRATCH/server.pid" ]; then
|
|
kill "$(cat "$SCRATCH/server.pid")" 2>/dev/null || true
|
|
rm -f "$SCRATCH/server.pid"
|
|
echo "stopped"
|
|
else
|
|
echo "no $SCRATCH/server.pid -- nothing to stop"
|
|
fi
|