-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvagrantfile
More file actions
executable file
·22 lines (18 loc) · 866 Bytes
/
Copy pathvagrantfile
File metadata and controls
executable file
·22 lines (18 loc) · 866 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "scotch/box"
config.vm.network "private_network", ip: "192.168.33.10"
config.vm.hostname = "scotchbox"
config.vm.synced_folder ".", "/var/www", :mount_options => ["dmode=777", "fmode=666"]
config.ssh.username = "vagrant"
config.ssh.password = "vagrant"
config.vm.provision "shell", inline: <<-SHELL
mv /var/www/public /var/www/web
sudo sed -i s,/var/www/public,/var/www/web,g /etc/apache2/sites-available/000-default.conf
sudo sed -i s,/var/www/public,/var/www/web,g /etc/apache2/sites-available/scotchbox.local.conf
sudo service apache2 restart
SHELL
# Optional NFS. Make sure to remove other synced_folder line too
#config.vm.synced_folder ".", "/var/www", :nfs => { :mount_options => ["dmode=777","fmode=666"] }
end