And then you want to run the following command after deploy:
ssh -i ~/.ssh/mypem.pem username@ip /home/myapp/rebuild-restart-mup-my-app.sh
Or stick it in the Meteor Up post deploy hook:
hooks: {
'post.deploy': {
localCommand: 'ssh -i ~/.ssh/mypem.pem username@ip /home/myapp/rebuild-restart-mup-my-app.sh',
},
},
@elie222 this looks useful. Curious if you have updated your process in the last 7 years, or if this is still running smoothly?