]> git.openstreetmap.org Git - rails.git/blob - Vagrantfile
b446b5c5f6a679cf744c769e9ab206386433da60
[rails.git] / Vagrantfile
1 # -*- mode: ruby -*-
2 # vi: set ft=ruby :
3
4 Vagrant.configure("2") do |config|
5   config.vm.box = "sputnik13/trusty64"
6
7   if Vagrant.has_plugin?("vagrant-cachier")
8     config.cache.enable :apt
9     config.cache.scope = :box
10   end
11
12   # port forward for webrick on 3000
13   config.vm.network :forwarded_port, :guest => 3000, :host => 3000
14
15   # set up synced folder to source in /srv/openstreetmap-website
16   config.vm.synced_folder ".", "/srv/openstreetmap-website",
17     :rsync__exclude => ["config/application.yml", "config/database.yml"]
18
19   # provision using a simple shell script
20   config.vm.provision :shell, :path => "script/vagrant/setup/provision.sh"
21 end