Skip to content

Commit

Permalink
fix production branch names
Browse files Browse the repository at this point in the history
  • Loading branch information
davimacedo committed Mar 26, 2024
1 parent 6852932 commit b27d98b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy-prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand Down
2 changes: 1 addition & 1 deletion deploy-prod2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand Down

0 comments on commit b27d98b

Please sign in to comment.