summaryrefslogtreecommitdiff
path: root/install-pixelated.sh
diff options
context:
space:
mode:
Diffstat (limited to 'install-pixelated.sh')
-rwxr-xr-xinstall-pixelated.sh13
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)