Skip to content

Instantly share code, notes, and snippets.

@cagataycali
Last active January 31, 2018 20:31
Show Gist options
  • Save cagataycali/a99eb0aa0e432d223bb41770d9c7846d to your computer and use it in GitHub Desktop.
Save cagataycali/a99eb0aa0e432d223bb41770d9c7846d to your computer and use it in GitHub Desktop.
Nightmare js runner
#!/bin/bash
DEBUG=nightmare xvfb-run --server-args="-screen 0 1024x768x24" node index.js

.1

sudo apt-get update && sudo apt-get install -y xvfb x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic x11-apps clang libdbus-1-dev libgtk2.0-dev libnotify-dev libgnome-keyring-dev libgconf2-dev libasound2-dev libcap-dev libcups2-dev libxtst-dev libxss1 libnss3-dev gcc-multilib g++-multilib

.2

DEBUG=nightmare xvfb-run --server-args="-screen 0 1024x768x24" node index.js

.3

pm2 start run.sh --name demo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment