File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -8,5 +8,8 @@ pem=AppContainers.pem
8
8
9
9
branch=$( git symbolic-ref --short HEAD)
10
10
git=' ~/bin/git-parse-dashboard'
11
- ssh -t -i $b4a_certs_path /$pem $user @$host " sudo su back4app -c '. ~/.nvm/nvm.sh && nvm use 9 && cd ~/scm/parse-dashboard && $git reset --hard && $git remote update && $git checkout $branch && $git merge origin/$branch && npm install && npm run prepublish && npm run build'"
11
+
12
+ ssh -t -i $b4a_certs_path /$pem $user @$host " sudo su back4app -c '. ~/.nvm/nvm.sh && nvm use 9 && cd ~/scm/parse-dashboard && $git reset --hard && $git remote update && $git checkout $branch && $git merge origin/$branch && npm install'"
13
+ ssh -t -i $b4a_certs_path /$pem $user @$host " sudo su back4app -c 'cd ~/scm/parse-dashboard && sed -i \" s/http:\/\/localhost:4000\/parseapi/https:\/\/dashboard-homolog.back4app.com\/parseapi/\" node_modules/parse/lib/browser/settings.js && npm run prepublish && npm run build'"
14
+
12
15
# ssh -t aws_B4ANFS_Homolog "sudo su back4app -c '. ~/.nvm/nvm.sh && nvm use 9 && cd ~/scm/back4app-site && yarn install && npm run build && pm2 reload site'"
Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ now=`date '+%Y%m%d%H%M%S'`
9
9
10
10
branch=master
11
11
git=' ~/bin/git-parse-dashboard'
12
- ssh -t -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 9 && cd ~/scm/parse-dashboard && $git reset --hard && $git remote update && $git checkout $branch && $git merge origin/$branch && yarn install --production=false && npm run prepublish && npm run build'"
12
+
13
+ ssh -t -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 9 && cd ~/scm/parse-dashboard && $git reset --hard && $git remote update && $git checkout $branch && $git merge origin/$branch && yarn install --production=false '"
14
+ ssh -t -i $b4a_certs_path /$pem $user @$host " sudo su back4app -c 'cd ~/scm/parse-dashboard && sed -i \" s/http:\/\/localhost:4000\/parseapi/https:\/\/dashboard.back4app.com\/parseapi/\" node_modules/parse/lib/browser/settings.js && npm run prepublish && npm run build'"
15
+
13
16
curl -X DELETE " https://api.cloudflare.com/client/v4/zones/69ace06909c83213745231d2c6d0fd27/purge_cache" -H " X-Auth-Email: $CF_EMAIL " -H " X-Auth-Key: $CF_KEY " -H " Content-Type: application/json" --data ' {"files":[
14
17
"https://parse-dashboard.back4app.com/bundles/dashboard.bundle.js",
15
18
"https://parse-dashboard.back4app.com/bundles/PIG.bundle.js",
You can’t perform that action at this time.
0 commit comments