Created
November 15, 2013 18:59
-
-
Save ukd1/7489716 to your computer and use it in GitHub Desktop.
Super simple shell scripts we use at www.rainforestqa.com for encrypting / decrypting / updating our Heroku apps with private environment variables
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
#!/bin/bash | |
gpg qa.txt.asc | |
gpg staging.txt.asc | |
gpg production.txt.asc |
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
#!/bin/bash | |
gpg --yes --recipient russ --recipient simon -aes qa.txt | |
gpg --yes --recipient russ --recipient simon -aes staging.txt | |
gpg --yes --recipient russ --recipient simon -aes production.txt |
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
#!/bin/bash | |
gpg -o production.txt -d production.txt.asc | |
heroku config:set $(sed '/^#/d' production.txt) --app <production-app-name> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment