Skip to content

Instantly share code, notes, and snippets.

@joebew42
Last active January 30, 2017 11:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joebew42/265937a83791e713a952fa1b168dbd9e to your computer and use it in GitHub Desktop.
Save joebew42/265937a83791e713a952fa1b168dbd9e to your computer and use it in GitHub Desktop.

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment