RailsApps / rails-devise-pundit

Rails 5.0 starter app with Devise for authentication and Pundit for authorization.
http://railsapps.github.io/rails-devise-pundit/
483 stars 156 forks source link

Heroku Deploy - Config Secret key #3

Closed cranesandcaff closed 10 years ago

cranesandcaff commented 10 years ago

I have no idea why this isn't working. I've followed every single possible tutorial on setting the environmental variables.

I've set it this way

 heroku config:add SECRET_KEY_BASE="keystuff" --remote production --app appname

2014-03-15T02:52:26.326250+00:00 app[web.1]: Unexpected error while processing request: Missing `secret_key_base` for 'production' environment, set this value in `config/secrets.yml`

And I keep getting the same error. I've tried every tutorial and article. What could I be doing wrong?!

cranesandcaff commented 10 years ago

I've tried it with and without the --remote and --app arguments. Nothing is working.

DanielKehoe commented 10 years ago

see https://github.com/RailsApps/rails-bootstrap/issues/13

cranesandcaff commented 10 years ago

Thank you so much. Ugh, nothing worse...or better than spending a few hours thinking you're an idiot only to find out it was a breaking change somewhere else unrelated to you. Life on the cutting edge, right?

I actually did end up doing almost that exact same thing in order to get it working.

DanielKehoe commented 10 years ago

Goes with the territory. Glad you got it sorted out. I'll make a note to update the README or tutorials if it doesn't change with the final release or Rails 4.1.