fix: clean stale X11 lock files before starting Xvfb

docker stop/start reuses the same container filesystem (not tmpfs
here), so a stale .X99-lock and X11 socket from a previous run make
Xvfb fail to bind silently on the next start — the server then runs
with no display at all and every browser launch fails.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
dasemuandClaude Sonnet 5 committed 2026-10-08 21:16:12 +02:00
1 parent 9d54c4e1d8
commit 722ea15f36
1 file changed
+1 -1
+1 -1
View File
@@ -5,4 +5,4 @@ aptPkgs = ["xvfb"]
cmds = ["npm ci", "npx playwright install --with-deps chromium"]
[start]
cmd = "Xvfb :99 -screen 0 1280x1024x24 -nolisten tcp & sleep 2 && DISPLAY=:99 npm start"
cmd = "rm -f /tmp/.X99-lock /tmp/.X11-unix/X99; Xvfb :99 -screen 0 1280x1024x24 -nolisten tcp & sleep 2 && DISPLAY=:99 npm start"