Last active
August 29, 2015 14:24
-
-
Save parkan/0d75c363034db1ade31b to your computer and use it in GitHub Desktop.
Run a docker rails console container with heroku variables injected into ENV
This file contains 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
# this replaces https://github.com/tpope/heroku-surrogate for docker containers (sort of) | |
docker-compose run `heroku config -a $APPNAME | tail +2 | tr -s " " | sed -E "s/^([^ ]+): (.+)/-e \1=\2/" | tr "\\n" " "` api rails c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment