2015-04-12 03:22:15 +02:00
|
|
|
Vagrant.configure("2") do |config|
|
2015-09-13 02:38:15 +02:00
|
|
|
|
|
|
|
config.hostmanager.enabled = true
|
|
|
|
config.hostmanager.manage_host = true
|
|
|
|
|
2015-12-20 19:30:51 +01:00
|
|
|
config.vm.box = 'laravel/homestead-7'
|
2015-12-24 12:41:35 +01:00
|
|
|
config.vm.box_version = '0.2.1'
|
2015-05-26 07:23:15 +02:00
|
|
|
config.vm.provider "virtualbox" do |v|
|
|
|
|
v.cpus = 4
|
2015-12-29 16:02:23 +01:00
|
|
|
v.memory = 1024
|
2015-05-26 07:23:15 +02:00
|
|
|
end
|
2015-04-12 03:22:15 +02:00
|
|
|
|
2015-09-13 02:38:15 +02:00
|
|
|
config.vm.define 'default' do |node|
|
2015-09-20 05:17:27 +02:00
|
|
|
node.vm.hostname = 'ponyfm-dev.poni'
|
2015-09-13 02:38:15 +02:00
|
|
|
node.vm.network :private_network, ip: "192.168.33.11"
|
2015-09-20 05:17:27 +02:00
|
|
|
node.hostmanager.aliases = %w(api.ponyfm-dev.poni)
|
2015-09-13 02:38:15 +02:00
|
|
|
end
|
|
|
|
|
2015-05-26 07:23:15 +02:00
|
|
|
config.vm.synced_folder ".", "/vagrant", type: "nfs"
|
|
|
|
|
|
|
|
config.vm.provision "shell", path: "vagrant/install.sh"
|
|
|
|
|
2015-06-16 16:12:43 +02:00
|
|
|
config.vm.network "forwarded_port", guest: 3306, host: 33060
|
|
|
|
|
2015-11-24 21:29:19 +01:00
|
|
|
config.vm.synced_folder "../pony.fm.files", "/vagrant-files", type: "nfs"
|
2015-05-26 07:23:15 +02:00
|
|
|
config.bindfs.bind_folder "/vagrant", "/vagrant"
|
2015-12-27 13:36:23 +01:00
|
|
|
|
|
|
|
config.vm.provision "shell", path: "vagrant/copy-and-restart-configs.sh", run: "always"
|
2015-05-02 11:48:57 +02:00
|
|
|
end
|