この方法で、デプロイをしてます。いやー、いい記事だ
/app/vendor/bundle/ruby/2.6.0/gems/activestorage-6.1.3.1/lib/active_storage/service/registry.rb:18:in `block in fetch': Missing configuration for the amazon Active Storage service. Configurations available for the test、local services. (KeyError)
herokuデプロイでエラー
environments/production.rb
config.active_storage.service = :amazon
config.active_storage.service = :local
に変更
Dec 21 06:16:32 coffee-passport-on-heroku app/web.1 /app/vendor/bundle/ruby/2.6.0/gems/aws-sigv4-1.2.4/lib/aws-sigv4/signer.rb:621:in `extract_credentials_provider': missing credentials, provide credentials with one of the following options: (Aws::Sigv4::Errors::MissingCredentialsError)
とエラー
がまたでた
config/strage.ymlの以下の記述を削除
amazon:
service: S3
region: ap-northeast-1
bucket: coffeepassport
access_key_id: <%= ENV['AWS_ACCESS_KEY_ID'] %>
secret_access_key: <%= ENV['AWS_SECRET_ACCESS_KEY'] %>