Last Updated: February 25, 2016
·
3.537K
· momoto

ERROR RuntimeError: You must set config.secret_key_base in your app's config.

vi .gitignore

-- config/initializers/secret_token.rb

vi config/initializers/secret_token.rb

++ {APP_NAME}::Application.config.secret_token = ENV['SECRET_TOKEN']

1 Response
Add your response

it's in the gitignore for security.
better to create config/initializers/secret_token.rb in your shared directory and symlink to it as part of the deploy tasks

over 1 year ago ·