2013-02-07 01:13:24 -05:00
|
|
|
# -*- mode: ruby -*-
|
|
|
|
# vi: set ft=ruby :
|
2013-02-05 14:16:51 -05:00
|
|
|
# See https://github.com/discourse/core/blob/master/DEVELOPMENT.md
|
|
|
|
#
|
|
|
|
Vagrant::Config.run do |config|
|
|
|
|
config.vm.box = 'discourse-pre'
|
|
|
|
config.vm.box_url = 'http://www.discourse.org/vms/discourse-pre.box'
|
2013-02-07 01:13:24 -05:00
|
|
|
|
|
|
|
# Make this VM reachable on the host network as well, so that other
|
|
|
|
# VM's running other browsers can access our dev server.
|
2013-02-05 14:16:51 -05:00
|
|
|
config.vm.network :hostonly, '192.168.10.200'
|
|
|
|
|
2013-02-07 01:13:24 -05:00
|
|
|
# Make it so that network access from the vagrant guest is able to
|
|
|
|
# use SSH private keys that are present on the host without copying
|
|
|
|
# them into the VM.
|
|
|
|
config.ssh.forward_agent = true
|
|
|
|
|
2013-02-07 20:51:54 -05:00
|
|
|
# This setting gives the VM 1024MB of MEMORIES instead of the default 384.
|
|
|
|
config.vm.customize ["modifyvm", :id, "--memory", 1024]
|
2013-02-07 01:13:24 -05:00
|
|
|
|
|
|
|
# This setting makes it so that network access from inside the vagrant guest
|
|
|
|
# is able to resolve DNS using the hosts VPN connection.
|
|
|
|
config.vm.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
|
|
|
|
|
2013-02-05 14:16:51 -05:00
|
|
|
config.vm.forward_port 3000, 4000
|
|
|
|
config.vm.forward_port 1080, 4080 # Mailcatcher
|
|
|
|
|
2013-02-07 20:51:54 -05:00
|
|
|
nfs_setting = RUBY_PLATFORM =~ /darwin/ ? true : false
|
|
|
|
config.vm.share_folder("v-root", "/vagrant", ".", :nfs => nfs_setting)
|
2013-02-05 14:16:51 -05:00
|
|
|
end
|