From 19a1855ea0b64ac2ce16a3edf1526cabdcaf3f59 Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Wed, 10 Apr 2013 16:57:34 -0400 Subject: [PATCH] Give vm more memory with DISCOURSE_VM_MEM env variable --- Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 13001164f..0bc84113b 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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.