Permalink
Browse files

Improved configuration to use Heroku ENV config variables.

  • Loading branch information...
Štefan Ľupták
Štefan Ľupták committed May 23, 2012
1 parent 32b8bf2 commit b2ed9dfccab148fd8efb4ef06aa40c5f014b6d08
Showing with 7 additions and 7 deletions.
  1. +0 −1 .gitignore
  2. +2 −0 config/gitlab_hook.yml.erb
  3. +0 −2 config/gitlab_hook.yml.example
  4. +5 −0 config/twitter.yml.erb
  5. +0 −4 config/twitter.yml.example
View
@@ -1,2 +1 @@
.rvmrc
-config/*.yml
@@ -0,0 +1,2 @@
+hostname: ENV['SHORTENER_HOSTNAME'] || '' # URL of your Heroku app
+access_token: ENV['SHORTENER_ACCESS_TOKEN'] || '' # random access token, passed as parameter from GitLab
@@ -1,2 +0,0 @@
-hostname: 'http://<YOUR_APP_NAME>.heroku.com'
-access_token: '<YOUR_SECRET_PASSPHRASE>'
View
@@ -0,0 +1,5 @@
+# provide configuration for local usage or set config ENV vars for Heroku usage
+consumer_key: ENV['TWITTER_CONSUMER_KEY'] || ''
+consumer_secret: ENV['TWITTER_CONSUMER_SECRET'] || ''
+oauth_token: ENV['TWITTER_OAUTH_TOKEN'] || ''
+oauth_token_secret: ENV['TWITTER_OAUTH_TOKEN_SECRET'] || ''
@@ -1,4 +0,0 @@
-consumer_key: # YOUR CONSUMER KEY
-consumer_secret: # YOUR CONSUMER SECRET
-oauth_token: # YOUR OAUTH TOKEN
-oauth_token_secret: # YOUR OAUTH TOKEN SECRET

0 comments on commit b2ed9df

Please sign in to comment.