From 630e3fa8630f34dfbbe7570cd168357d98b6cb8d Mon Sep 17 00:00:00 2001 From: wiz Date: Sat, 19 Sep 2020 02:18:58 +0900 Subject: [PATCH] Update production scripts to only install production npm deps --- production/mempool-install-all | 4 ++-- production/mempool-upgrade-all | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/production/mempool-install-all b/production/mempool-install-all index 47f38dc70..605044deb 100755 --- a/production/mempool-install-all +++ b/production/mempool-install-all @@ -10,13 +10,13 @@ do cp "../production/mempool-config.${site}.json" "mempool-config.json" touch cache.json - npm install + npm install --only=prod npm run build if [ "${site}" = "mainnet" ] then cd "${HOME}/${site}/frontend/" - npm install + npm install --only=prod npm run build rsync -av ./dist/mempool/* "${HOME}/public_html/${site}/" fi diff --git a/production/mempool-upgrade-all b/production/mempool-upgrade-all index d9e8fa04e..9f8e0eb2c 100755 --- a/production/mempool-upgrade-all +++ b/production/mempool-upgrade-all @@ -26,13 +26,13 @@ do if [ "${site}" = "mainnet" ] then cd "$HOME/${site}/frontend" - npm install + npm install --only=prod npm run build rsync -av ./dist/mempool/* "${HOME}/public_html/${site}/" fi cd "$HOME/${site}/backend" - npm install + npm install --only=prod npm run build done