-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
{:system, "SECRET_KEY_BASE"}
not working for cookie key generation
#1033
Comments
@matthewlehner Looks like an error in the guides. Will edit it! :) |
The guide is confusing because we don't do releases on Heroku. |
Thanks @gjaldon for your quick work! I just merged your PR and pushed the changes to the live site. |
My pleasure, @lancehalvorsen. :) |
Thanks for the clarification everyone! 👍 |
I ran into this problem trying to deploy to Heroku and followed the directions from the guide explicitly.
The
SECRET_KEY_BASE
is set inconfig/prod.exs
like this:Changing from the tuple to
System.get_env/1
makes everything work again, but the Heroku guide specifically says:I've prepared a basic Phoenix app, following the Heroku guide directions explicitly to demonstrate the issue: matthewlehner/heroku-phoenix-env-test
It's deployed here: https://phoenix-env-errors.herokuapp.com/
I'm not 100% sure that this is the case, but I'd assume that passing the tuple to the Erlang crypto lib in
Plug.Crypto.KeyGenerator
is what's causing the problem, but unfortunately I'm too new to Elixir to have a good understanding of what's happening here beyond that.The text was updated successfully, but these errors were encountered: