1
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.

HerokuでS3を使うアプリで500エラーが出た時の設定

Posted at

heroku側のconfigにS3のキーをセット

Laravelで作ったアプリをHerokuにデプロイしたら500Errorが出た話ですが、

AWS S3を使用している場合には、AWSのLaravelプロジェクト内の「.env」だけではなく、
Herokuのconfig側も設定が必要

heroku config:set 
AWS_ACCESS_KEY_ID=AAAAAAAAAAAAAA AWS_SECRET_ACCESS_KEY=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 
AWS_DEFAULT_REGION=ap-southeast-1 AWS_BUCKET=AAAAAAAA -a アプリ名

的な感じで設定が可能

1
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
1
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?