Skip to content

Instantly share code, notes, and snippets.

@jonlow
Created July 3, 2017 02:13
Show Gist options
  • Save jonlow/33277557ddd4cc051f313eb3e51d5f6d to your computer and use it in GitHub Desktop.
Save jonlow/33277557ddd4cc051f313eb3e51d5f6d to your computer and use it in GitHub Desktop.
rsync deploy on amazon ec2 with .pem file
rsync -rave "ssh -i /Users/path/pemfile.pem" localDistFolder/ ubuntu@myAmazonec2server:/var/www/productionDistFolder/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment