Skip to content

Instantly share code, notes, and snippets.

@carld
Last active April 20, 2017 06:15
Show Gist options
  • Select an option

  • Save carld/e4ec5add9825daed7a11af9989f220c2 to your computer and use it in GitHub Desktop.

Select an option

Save carld/e4ec5add9825daed7a11af9989f220c2 to your computer and use it in GitHub Desktop.
Deploying a clojure ring app to an EC2 machine with Nginx in front
scp -v -r resources/public/* dirnet:/var/www/static/
lein ring uberjar
rsync --verbose --progress -t target/*.jar dirnet:/var/www
ssh host "sudo service my-app restart"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment