Skip to content

Instantly share code, notes, and snippets.

@MikSDigital
Forked from jbalzar/Vagrantfile.rb
Created February 3, 2017 15:03
Show Gist options
  • Save MikSDigital/36ba3ef9b7e53a4ce263f9be79e7478e to your computer and use it in GitHub Desktop.
Save MikSDigital/36ba3ef9b7e53a4ce263f9be79e7478e to your computer and use it in GitHub Desktop.
Set scotchbox default document root to /var/www
config.vm.provision "shell", inline: <<-SHELL
mv /var/www/public /var/www
sudo sed -i s,/var/www/public,/var/www,g /etc/apache2/sites-available/000-default.conf
sudo sed -i s,/var/www/public,/var/www,g /etc/apache2/sites-available/scotchbox.local.conf
sudo service apache2 restart
SHELL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment