Skip to content

Instantly share code, notes, and snippets.

@rubyonrailstutor
Created September 18, 2012 22:59
Show Gist options
  • Save rubyonrailstutor/3746568 to your computer and use it in GitHub Desktop.
Save rubyonrailstutor/3746568 to your computer and use it in GitHub Desktop.
env variables
app.rb calls
use OmniAuth::Builder do
provider :twitter, ENV['TWITTER_CONSUMER_KEY'], ENV['TWITTER_CONSUMER_SECRET']
end
and cat ~/.bashrc
is
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
export TWITTER_CONSUMER_KEY=yyyy
export TWITTER_CONSUMER_SECRET=xxxx
Heroku ENV calls are working correctly but locally this technique is not working.
@alfielapeter
Copy link

Did you reload the console? If you change your .bashrc file you either need to reload that file with 'source .bashrc' or reopen a new terminal window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment