Give vm more memory with DISCOURSE_VM_MEM env variable

This commit is contained in:
Neil Lalonde 2013-04-10 16:57:34 -04:00
parent c0f3c47196
commit 19a1855ea0

2
Vagrantfile vendored
View file

@ -17,7 +17,7 @@ Vagrant.configure("2") do |config|
config.vm.provider :virtualbox do |v| config.vm.provider :virtualbox do |v|
# This setting gives the VM 1024MB of MEMORIES instead of the default 384. # This setting gives the VM 1024MB of MEMORIES instead of the default 384.
v.customize ["modifyvm", :id, "--memory", 1024] v.customize ["modifyvm", :id, "--memory", [ENV['DISCOURSE_VM_MEM'].to_i, 1024].max]
# This setting makes it so that network access from inside the vagrant guest # This setting makes it so that network access from inside the vagrant guest
# is able to resolve DNS using the hosts VPN connection. # is able to resolve DNS using the hosts VPN connection.