Skip to content

Commit f2a365a

Browse files
CasJamBrian Caselclaude
authored
Free Vite and SSR ports and clear stale pidfile in conductor run script (#7)
Why: starting bin/dev would frequently fail because port 3036 (Vite) or 13714 (SSR) was still bound from a previous run, or because a stale tmp/pids/server.pid blocked Rails from booting. Killing only :3000 left those failure modes intact. Co-authored-by: Brian Casel <brian@briancasel.com> Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent cebe9a9 commit f2a365a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

conductor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"scripts": {
33
"setup": "# bundle, create db, migrate, run seeds\nbin/setup\n\n# install frontend deps\nnpm install",
4-
"run": "# Kill whatever is running on port 3000\nlsof -ti :3000 | xargs kill -9\nbin/dev",
4+
"run": "# Free ports (Rails 3000, Vite 3036, SSR 13714) and clear stale pidfile\nlsof -ti :3000 -ti :3036 -ti :13714 2>/dev/null | xargs kill -9 2>/dev/null || true\nrm -f tmp/pids/server.pid\nbin/dev",
55
"archive": "# Frontend deps\nrm -rf node_modules\n\n# Vite build output\nrm -rf public/vite public/vite-ssr public/vite-dev\n\n# Rails tmp + logs\nrm -rf tmp/cache tmp/pids tmp/sockets tmp/storage\nrm -f log/*.log"
66
}
77
}

0 commit comments

Comments
 (0)