2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-04 08:47:37 +08:00

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|
# 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
# is able to resolve DNS using the hosts VPN connection.