ruby on rails - Figaro Gem and Missing `secret_key_base` for 'development' environment -
ruby on rails - Figaro Gem and Missing `secret_key_base` for 'development' environment -
i'm having difficulty getting figaro gem configured in app - here's have:
the error i'm getting
internal server error
missing secret_key_base
'development' environment, set value in config/secrets.yml
webrick/1.3.1 (ruby/2.1.2/2014-05-08) @ localhost:3000
gemfile
gem 'sdoc', '~> 0.4.0', group: :doc # spring speeds development keeping application running in background. read more: https://github.com/rails/spring gem 'spring', group: :development gem 'figaro' gem 'flickraw'
application.yml
flickraw.api_key: 00000000000etc flickraw.shared_secret: 0000000000etc development: secret_key_base: 0000000000etc test: secret_key_base: 0000000000etc
secrets.yml (i added env variable see if prepare .. doesn't create difference)
development: secret_key_base: <%= env['secret_key_base'] %> test: secret_key_base: <%= env['secret_key_base'] %> # not maintain production secrets in repository, # instead read values environment. production: secret_key_base: <%= env["secret_key_base"] %>
i'm grateful in advance help ... i'm not implementing correctly. here's link figaro's docs: https://github.com/laserlemon/figaro
it typo in flickraw api information. changes "flickraw.api_key:" "flickraw_api_key".
ruby-on-rails ruby ruby-on-rails-4 development-environment secret-key
Comments
Post a Comment