Add --prod
to npm install
in ops scripts
This commit is contained in:
parent
bc56878039
commit
bc068a0d9a
@ -56,7 +56,7 @@ build_frontend()
|
|||||||
if [ ! -e "mempool-frontend-config.json" ];then
|
if [ ! -e "mempool-frontend-config.json" ];then
|
||||||
cp "${HOME}/mempool/production/mempool-frontend-config.${site}.json" "mempool-frontend-config.json"
|
cp "${HOME}/mempool/production/mempool-frontend-config.${site}.json" "mempool-frontend-config.json"
|
||||||
fi
|
fi
|
||||||
npm install --no-optional || exit 1
|
npm install --prod --no-optional || exit 1
|
||||||
npm run build || exit 1
|
npm run build || exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ build_backend()
|
|||||||
-e "s!__ELEMENTS_RPC_PASS__!${ELEMENTS_RPC_PASS}!" \
|
-e "s!__ELEMENTS_RPC_PASS__!${ELEMENTS_RPC_PASS}!" \
|
||||||
"mempool-config.json"
|
"mempool-config.json"
|
||||||
fi
|
fi
|
||||||
npm install --no-optional || exit 1
|
npm install --prod --no-optional || exit 1
|
||||||
npm run build || exit 1
|
npm run build || exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user