ga-dc / wdi5-project3

Project 3
0 stars 5 forks source link

figaro env variables not working #75

Closed nclevine closed 9 years ago

nclevine commented 9 years ago

I have figaro installed, all of my keys are defined in the application.yml file and i'm using ENV['my_key'] in string interpolation in the controllers ... it seems that ENV[ ... ] isn't actually loading the keys because the error i'm getting at runtime is that the API key is missing ... i have rails 12 factor gem installed and i got rid spring, but it's still not working

jshawl commented 9 years ago

Did you try restarting the server?

jshawl commented 9 years ago

Also you can see all environment variables by opening up rails c and typing ENV

nclevine commented 9 years ago

thanks i didn't think of restarting the server- it's working now!