Skip to content

Instantly share code, notes, and snippets.

@ukd1
Created November 15, 2013 18:59
Show Gist options
  • Save ukd1/7489716 to your computer and use it in GitHub Desktop.
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
#!/bin/bash
gpg qa.txt.asc
gpg staging.txt.asc
gpg production.txt.asc
#!/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
#!/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