Update Vagrant development environment to use Ubuntu 16.04

- Uses Ubuntu Server 16.04
- Replace NFS with regular vagrant mechanism for shared folder
This commit is contained in:
Tarek Loubani 2016-06-02 13:05:10 -04:00
parent fd57865046
commit 74ea898e18

6
Vagrantfile vendored
View File

@ -3,8 +3,8 @@
# See https://github.com/discourse/discourse/blob/master/docs/VAGRANT.md # See https://github.com/discourse/discourse/blob/master/docs/VAGRANT.md
# #
Vagrant.configure("2") do |config| Vagrant.configure("2") do |config|
config.vm.box = 'discourse/discourse-1.3.0' config.vm.box = 'discourse-16.04'
config.vm.box_url = "http://discourse-vms.s3.amazonaws.com/discourse-1.3.0.box" config.vm.box_url = "https://www.dropbox.com/s/2132770g1e05c6d/discourse.box?dl=0"
# Make this VM reachable on the host network as well, so that other # Make this VM reachable on the host network as well, so that other
# VM's running other browsers can access our dev server. # VM's running other browsers can access our dev server.
@ -43,6 +43,6 @@ Vagrant.configure("2") do |config|
config.vm.network :forwarded_port, guest: 1080, host: 4080 # Mailcatcher config.vm.network :forwarded_port, guest: 1080, host: 4080 # Mailcatcher
nfs_setting = RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/ nfs_setting = RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/
config.vm.synced_folder ".", "/vagrant", id: "vagrant-root", :nfs => nfs_setting config.vm.synced_folder ".", "/vagrant", id: "vagrant-root"
end end