Don't call npm install with --only=prod

This commit is contained in:
wiz 2020-10-26 04:24:05 +09:00
parent fb47f5606a
commit 75ce300332
No known key found for this signature in database
GPG Key ID: A394E332255A6173
2 changed files with 4 additions and 4 deletions

View File

@ -10,13 +10,13 @@ do
cp "../production/mempool-config.${site}.json" "mempool-config.json"
touch cache.json
npm install --only=prod
npm install
npm run build
if [ "${site}" = "mainnet" ]
then
cd "${HOME}/${site}/frontend/"
npm install --only=prod
npm install
npm run build
rsync -av ./dist/mempool/* "${HOME}/public_html/${site}/"
fi

View File

@ -34,13 +34,13 @@ do
if [ "${site}" = "mainnet" ]
then
cd "$HOME/${site}/frontend"
npm install --only=prod
npm install
npm run build
rsync -av ./dist/mempool/* "${HOME}/public_html/${site}/"
fi
cd "$HOME/${site}/backend"
npm install --only=prod
npm install
npm run build
done