Last active
March 7, 2017 16:50
-
-
Save dickstar/a93a0125387b1f126b8f2bfbd55aa079 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Follow https://laravel.com/docs/5.4/dusk | |
//original dusk is used for graphic | |
//for vagrant, we have to open a terminal window | |
//composer require laravel/dusk | |
//Register provider | |
//php artisan dusk:install | |
sudo apt-get update | |
sudo apt-get install -y xvfb | |
sudo apt-get install -y libnss3-dev libxi6 libgconf-2-4 libnss3-1d libxss1 | |
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | |
sudo dpkg -i --force-depends google-chrome-stable_current_amd64.deb | |
sudo apt-get install -f | |
sudo apt-get install -y libappindicator1 libindicator7 | |
sudo apt-get install -y xfonts-100dpi xfonts-75dpi xfonts-cyrillic xfonts-scalable | |
//Open a separate terminal window | |
//Xvfb :0 -screen 0 1280x960x24 2>/dev/null & | |
//Another Sample | |
//Xvfb :1 -screen 0 1024x768x24 2>/dev/null & | |
//modify APP_URL in .env, APP_URL=http://localhost:8000 | |
//php artisan dusk | |
//References: | |
//https://news.laravel-china.org/posts/554 | |
//Chceck ports | |
//sudo lsof -i :9515 | grep LISTEN | |
//Stop Xvfb | |
//Xvfb | |
//jobs | |
//Then kill it: | |
//kill %1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment