Last active
June 15, 2018 10:51
-
-
Save j-mcnally/1ce0a1455cb940e4c5e3 to your computer and use it in GitHub Desktop.
Container Reload Script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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