私のsecret_tokenとsecret_key_baseがPumaによって読み取られない理由はわかりません。アプリはCapistrano、Nginx、Pumaを通じて配備されています。'production'環境(Puma)の 'secret_token'と 'secret_key_base'が見つかりません
secrets.yml
development:
secret_key_base: XXXXXXXXXXXXXXXXXX
secret_token: XXXXXXXXXXX
test:
secret_key_base: XXXXXXXXXXXXXXXXXXXXXXXXXXXX
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
secret_token: <%= ENV["SECRET_TOKEN"] %>
マイ.gitignoreファイルは私のsecrets.ymlファイルをブロックはないが、まだ毎回私は
An unhandled lowlevel error occurred. The application logs may have details.
そして、私のアプリケーションログに語っています私のサーバーに接続しよう私はと言われますMissing 'secret_token' and 'secret_key_base' for 'production' environment
全アプリケーションログ
=== puma startup: 2016-04-05 07:00:04 -0400 ===
2016-04-05 07:00:09 -0400: Rack app error: #<RuntimeError: Missing `secret_token` and `secret_key_base` for 'production' environment, set these values in `config/secrets.yml`>
/home/deploy/apps/IASAS_site/shared/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/application.rb:534:in `validate_secret_key_config!'
/home/deploy/apps/IASAS_site/shared/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/application.rb:246:in `env_config'
/home/deploy/apps/IASAS_site/shared/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/engine.rb:514:in `call'
/home/deploy/apps/IASAS_site/shared/bundle/ruby/2.2.0/gems/railties-4.2.6/lib/rails/application.rb:165:in `call'
/home/deploy/apps/IASAS_site/shared/bundle/ruby/2.2.0/gems/puma-3.2.0/lib/puma/configuration.rb:227:in `call'
/home/deploy/apps/IASAS_site/shared/bundle/ruby/2.2.0/gems/puma-3.2.0/lib/puma/server.rb:561:in `handle_request'
/home/deploy/apps/IASAS_site/shared/bundle/ruby/2.2.0/gems/puma-3.2.0/lib/puma/server.rb:406:in `process_client'
/home/deploy/apps/IASAS_site/shared/bundle/ruby/2.2.0/gems/puma-3.2.0/lib/puma/server.rb:271:in `block in run'
/home/deploy/apps/IASAS_site/shared/bundle/ruby/2.2.0/gems/puma-3.2.0/lib/puma/thread_pool.rb:111:in `call'
/home/deploy/apps/IASAS_site/shared/bundle/ruby/2.2.0/gems/puma-3.2.0/lib/puma/thread_pool.rb:111:in `block in spawn_thread'
助けてください!
私は推測させてください:あなたは環境変数 'SECRET_KEY_BASE'と' SECRET_TOKEN'を設定するのに気にしませんでしたか? – mudasobwa
私は自分の環境変数を設定していますが、まだ同じエラーを受けています... – PallyP