forked from mapasculturais/mapasculturais
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathVagrantfile
32 lines (23 loc) · 927 Bytes
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# -*- mode: ruby -*-
# vi: set ft=ruby :
VAGRANTFILE_API_VERSION = "2"
$serviceup = <<SCRIPT
echo "Starting service..."
php -S 0.0.0.0:8000 -t /vagrant/src /vagrant/src/router.php &
echo "All done! Call http://127.0.0.1:8000 in your browser and be happy."
SCRIPT
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
# Every Vagrant virtual environment requires a box to build off of.
config.vm.box = "ubuntu/trusty64"
config.vm.network "forwarded_port", guest: 8000, host: 8000
# config.ssh.username = "mapas"
config.vm.provision "shell", path: "./scripts/install_vagrant.sh"
config.vm.provision "shell", path: "./scripts/configure_vagrant.sh", args: "/vagrant",
privileged: false
config.vm.provision "shell", inline: $serviceup,
run: "always",
privileged: false
#config.vm.provider :virtualbox do |vb|
# vb.gui = true
#end
end