0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

本番環境をAWSからHerokuへ移した際のデプロイでエラー

Posted at

この方法で、デプロイをしてます。いやー、いい記事だ

/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'] %>

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?