diff --git a/deploy-prod.sh b/deploy-prod.sh index 6acc18bae5..89a91db1da 100755 --- a/deploy-prod.sh +++ b/deploy-prod.sh @@ -7,7 +7,7 @@ user=ubuntu pem=Back4App_Production.pem now=`date '+%Y%m%d%H%M%S'` -branch=master +branch=production1 git='~/bin/git-parse-dashboard' ssh -t -o IdentitiesOnly=yes -i $b4a_certs_path/$pem $user@$host "sudo su back4app -c 'cp -r ~/scm/parse-dashboard ~/scm/parse-dashboard-$now && . ~/.nvm/nvm.sh && nvm use 14 && cd ~/scm/parse-dashboard && rm -rf node_modules && $git reset --hard && $git remote update && $git checkout $branch && $git merge origin/$branch && npm install --production=false && sed -i \"s/http:\/\/localhost:4000\/parseapi/https:\/\/dashboard.back4app.com\/parseapi/\" node_modules/parse/lib/browser/settings.js && npm run build'" diff --git a/deploy-prod2.sh b/deploy-prod2.sh index 71bb48932f..9bbf7afc8d 100755 --- a/deploy-prod2.sh +++ b/deploy-prod2.sh @@ -7,7 +7,7 @@ user=ubuntu pem=Back4App_Production.pem now=`date '+%Y%m%d%H%M%S'` -branch=master +branch=production2 git='~/bin/git-parse-dashboard' ssh -t -o IdentitiesOnly=yes -i $b4a_certs_path/$pem $user@$host "sudo su back4app -c 'cp -r ~/scm/parse-dashboard2 ~/scm/parse-dashboard2-$now && . ~/.nvm/nvm.sh && nvm use 14 && cd ~/scm/parse-dashboard2 && rm -rf node_modules && $git reset --hard && $git remote update && $git checkout $branch && $git merge origin/$branch && npm install --production=false && sed -i \"s/http:\/\/localhost:4000\/parseapi/https:\/\/dashboard.back4app.com\/parseapi/\" node_modules/parse/lib/browser/settings.js && npm run build'"