Remove duplicate npm install and build steps in production scripts

This commit is contained in:
wiz 2020-05-26 21:52:50 +09:00
parent 9af0015c22
commit b9d9875e98
No known key found for this signature in database
GPG Key ID: A394E332255A6173
2 changed files with 1 additions and 2 deletions

View File

@ -22,7 +22,6 @@
"scripts": {
"build": "tsc",
"start": "npm run build && node dist/index.js",
"production": "npm install && npm run build && node dist/index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"dependencies": {

View File

@ -2,7 +2,7 @@
for site in mainnet liquid testnet
do
cd "${HOME}/${site}/backend/"
screen -dmS "${site}" sh -c 'while true;do npm run production;sleep 1;done'
screen -dmS "${site}" sh -c 'while true;do npm run start;sleep 1;done'
done
#cd "${HOME}/webhook/"