Update production scripts to only install production npm deps
This commit is contained in:
parent
5d2c0d2e0a
commit
630e3fa863
@ -10,13 +10,13 @@ do
|
|||||||
cp "../production/mempool-config.${site}.json" "mempool-config.json"
|
cp "../production/mempool-config.${site}.json" "mempool-config.json"
|
||||||
touch cache.json
|
touch cache.json
|
||||||
|
|
||||||
npm install
|
npm install --only=prod
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
if [ "${site}" = "mainnet" ]
|
if [ "${site}" = "mainnet" ]
|
||||||
then
|
then
|
||||||
cd "${HOME}/${site}/frontend/"
|
cd "${HOME}/${site}/frontend/"
|
||||||
npm install
|
npm install --only=prod
|
||||||
npm run build
|
npm run build
|
||||||
rsync -av ./dist/mempool/* "${HOME}/public_html/${site}/"
|
rsync -av ./dist/mempool/* "${HOME}/public_html/${site}/"
|
||||||
fi
|
fi
|
||||||
|
@ -26,13 +26,13 @@ do
|
|||||||
if [ "${site}" = "mainnet" ]
|
if [ "${site}" = "mainnet" ]
|
||||||
then
|
then
|
||||||
cd "$HOME/${site}/frontend"
|
cd "$HOME/${site}/frontend"
|
||||||
npm install
|
npm install --only=prod
|
||||||
npm run build
|
npm run build
|
||||||
rsync -av ./dist/mempool/* "${HOME}/public_html/${site}/"
|
rsync -av ./dist/mempool/* "${HOME}/public_html/${site}/"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cd "$HOME/${site}/backend"
|
cd "$HOME/${site}/backend"
|
||||||
npm install
|
npm install --only=prod
|
||||||
npm run build
|
npm run build
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user