mirror of
https://github.com/jaypyles/Scraperr.git
synced 2025-11-02 23:47:04 +00:00
* feat: add recording viewer and vnc * feat: add recording viewer and vnc * feat: add recording viewer and vnc * feat: add recording viewer and vnc * chore: update gitignore [skip ci] * chore: update dev compose [skip ci] * fix: only run manually
15 lines
353 B
Bash
Executable File
15 lines
353 B
Bash
Executable File
#!/bin/bash
|
|
|
|
RECORDINGS_ENABLED=${RECORDINGS_ENABLED:-true}
|
|
|
|
if [ "$RECORDINGS_ENABLED" == "false" ]; then
|
|
pdm run python -m api.backend.worker.job_worker
|
|
else
|
|
Xvfb :99 -screen 0 1280x1024x24 &
|
|
XVFB_PID=$!
|
|
sleep 2
|
|
x11vnc -display :99 -rfbport 5900 -forever -nopw &
|
|
VNC_PID=$!
|
|
DISPLAY=:99 pdm run python -m api.backend.worker.job_worker
|
|
fi
|