diff options
author | Ola Bini <ola@olabini.se> | 2016-12-07 18:36:33 -0200 |
---|---|---|
committer | Ola Bini <ola@olabini.se> | 2016-12-07 18:36:51 -0200 |
commit | cef353491e5032d30f924b46dcae4e63897e189b (patch) | |
tree | d1f10c968d14885e1fef4a769f29cfb3e388b469 /install-pixelated.sh | |
parent | 3e9f6d5684913c6d2e996cd46f75934ac075e342 (diff) |
Fix out of memory errors and problems with older node versions that stopped vagrant from working
Diffstat (limited to 'install-pixelated.sh')
-rwxr-xr-x | install-pixelated.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/install-pixelated.sh b/install-pixelated.sh index 4c6142a2..e3f4aaf1 100755 --- a/install-pixelated.sh +++ b/install-pixelated.sh @@ -57,6 +57,19 @@ function check_installed() { set -e } + +# The below is necessary to allow node to use enough memory +# so that installing phantomjs won't fail +mkdir -p /home/vagrant/bin +cat > /home/vagrant/bin/node <<EOF +#!/usr/bin/env bash + +/usr/bin/node --max_old_space_size=2000 "\$@" +EOF +chmod +x /home/vagrant/bin/node +export PATH=/home/vagrant/bin:$PATH + + function install_node_modules_at_custom_location() { local LOCATION="$1" local WEBUI_DIR=$(pwd) |