Give vm more memory with DISCOURSE_VM_MEM env variable
This commit is contained in:
parent
c0f3c47196
commit
19a1855ea0
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue