From f55f7325d56a3c80ce1b25ea74be1a03886b5318 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Tue, 20 Jun 2017 13:34:48 -0400 Subject: [PATCH] Avoid frequent npm install in sample deploy.sh, it wastes /tmp space --- scripts/deploy.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/deploy.sh b/scripts/deploy.sh index 173b5a686..7e4d67556 100644 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -22,14 +22,16 @@ if [[ "${rev}" != "${orig}" ]] ; then rev=`git rev-parse --short HEAD` sed -i "s/context.version = .*;/context.version = '${rev}';/" modules/core/context.js + + npm prune + npm install fi # pull latest imagery rm -rf node_modules/editor-layer-index/ +git clone https://github.com/osmlab/editor-layer-index.git node_modules/editor-layer-index # build everything -npm prune -npm install npm run imagery npm run all