Skip to content

Instantly share code, notes, and snippets.

@darron
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darron/9470489 to your computer and use it in GitHub Desktop.
Save darron/9470489 to your computer and use it in GitHub Desktop.
Adding configurable environment variables to octohost. Inserted into the running container on deploy.
octohost:/home/git# octo config canary
/canary/SESSION_SECRET:long-random-looking-string-that-will-not-be-posted
/canary/SENDGRID_PASSWORD:not-the-password
/canary/SENDGRID_USERNAME:not-the-username@example.com
/canary/EMAIL_DESTINATION:not-the-email-address@example.com
/canary/RACK_ENV:production
/canary/LANG:en_US.UTF-8
/canary/BASE_CANARY_PATH:octo
octohost:/home/git# octo config:set canary/TESTING "This is only a test."
This is only a test.
octohost:/home/git# octo config canary
/canary/SESSION_SECRET:long-random-looking-string-that-will-not-be-posted
/canary/SENDGRID_PASSWORD:not-the-password
/canary/SENDGRID_USERNAME:not-the-username@example.com
/canary/EMAIL_DESTINATION:not-the-email-address@example.com
/canary/RACK_ENV:production
/canary/LANG:en_US.UTF-8
/canary/BASE_CANARY_PATH:octo
/canary/TESTING:This is only a test.
octohost:/home/git# octo config:rm canary/TESTING
octohost:/home/git# octo config canary
/canary/SESSION_SECRET:long-random-looking-string-that-will-not-be-posted
/canary/SENDGRID_PASSWORD:not-the-password
/canary/SENDGRID_USERNAME:not-the-username@example.com
/canary/EMAIL_DESTINATION:not-the-email-address@example.com
/canary/RACK_ENV:production
/canary/LANG:en_US.UTF-8
/canary/BASE_CANARY_PATH:octo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment