我想将Rails应用程序从ECR docker映像部署到ECS
但是,现在发生了错误。
=> Booting Puma
=> Rails 5.2.1 application starting in production
=> Run `rails server -h` for more startup options
/usr/local/bundle/gems/railties-5.2.1/lib/rails/application.rb:585:in `validate_secret_key_base': Missing `secret_key_base` for 'production' environment, set this string with `rails credentials:edit` (ArgumentError)
这在凭据.yml.enc中进行了描述。
production:
secret_key_base: xxxxxxxxxxxxxxxxxxxxxxx
ECS作为环境变量
NODE_ENV production
RAILS_ENV production
RAILS_MASTER_KEY xxxxxxxxxxxxxxxxxxxxxxx
在我的开发环境中,可以毫无问题地打开凭据。yml.enc。
请告诉我AWS的生产环境是否需要一些配置。