Skip to content

Instantly share code, notes, and snippets.

@j-mcnally
Last active June 15, 2018 10:51
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save j-mcnally/1ce0a1455cb940e4c5e3 to your computer and use it in GitHub Desktop.
Save j-mcnally/1ce0a1455cb940e4c5e3 to your computer and use it in GitHub Desktop.
Container Reload Script
#!/bin/bash
docker pull user/myrepo && \
docker rm -f myapp && \
docker run -d -p 80:80 -e RAILS_ENV=production --env-file=/opt/utils/deps/web.envfile --name=myapp --link=postgres:postgres --link=redis:redis user/myrepo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment