Skip to content

Instantly share code, notes, and snippets.

@smailq
Last active November 3, 2016 16:09
Show Gist options
  • Save smailq/9af49caa978e62608ef72e83656acdb2 to your computer and use it in GitHub Desktop.
Save smailq/9af49caa978e62608ef72e83656acdb2 to your computer and use it in GitHub Desktop.
# Pull new code from repository, build docker image, and start new container with new image
*/5 * * * * cd /home/ec2-user/myproject; make pull 2>&1 >> /home/ec2-user/deployment.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment