Setup:
apt-get update; apt-get install nodejs net-tools
Configuration:
export DISPLAY=:99
Xvfb :99 -screen 0 1280x2000x24 > /dev/null 2>&1 &
and then run electron
Test:
bash -c "while [ true ]; do usleep 250000; curl -q http://localhost:8080 & done"
curl -X POST --data-binary "@test/fixtures/foobar.html" http://localhost:8080/convert
bash -c "while [ true ]; do usleep 250000; curl -X POST --data-binary \"abc\" -q http://localhost:8080/convert & done"
DEBUG:
export DEBUG=queue