Guest User

Untitled

a guest
Jun 25th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #!/bin/bash
  2. ssh -i <path-to-pem-file> ubuntu@<aws-ec2-public-ip>> << EOF
  3. kill $(ps aux | grep 'node' | awk '{print $2}')
  4. cd ~
  5. rm -rf <folder-path-of-git-repo>
  6. cd <folder-where-you-want-to-clone-git-repo>
  7. git clone <git-repo>
  8. cd <folder-path-of-git-repo>
  9. npm install
  10. nohup npm start &
  11. EOF
Add Comment
Please, Sign In to add comment