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']
Written by momoto
Related protips
1 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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ruby
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#