Skip to content

Instantly share code, notes, and snippets.

@ghedamat
Last active April 14, 2016 20:36
Show Gist options
  • Save ghedamat/04d8ddc95e50ab92428ee52f781fbd5a to your computer and use it in GitHub Desktop.
Save ghedamat/04d8ddc95e50ab92428ee52f781fbd5a to your computer and use it in GitHub Desktop.
PN - UPDATE VAGRANT TO USE CHROME
export DISPLAY=:99

We finally decided to move to use Chrome instead of PhantomJS

there's a PR that attempt to update the vagrant VM for this but in the meantime you can do what is suggested in this gist

the problem is ONLY inside vagrant when running tests with npm test

ember test --server is going to use PhantomJS regardless and so is CircleCI

NOTE

etc-rc.local needs to be saved in /etc/rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
nohup Xvfb :99 -screen 0 1280x1024x24 &
sleep 2
DISPLAY=:99.0 xfwm4 --daemon
exit 0
# in a terminal run
sudo apt-get install xfwm4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment