Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Save images on storage #20

Open
tatsumiwa-pg opened this issue Jan 12, 2022 · 0 comments
Open

Save images on storage #20

tatsumiwa-pg opened this issue Jan 12, 2022 · 0 comments
Assignees

Comments

@tatsumiwa-pg
Copy link
Owner

実装概要

Herokuで投稿した画像を、AWSのデータ保管サービスであるS3に保存する

実装方針

  • S3で保存先を作成する。
  • ローカル環境で、S3に画像を保存する実装をする。
  • 本番環境で、S3に画像を保存する実装をする

実装条件

  • 本番環境で投稿した商品画像が、S3に保存される

注意事項

  • このタスクへは、基本機能のタスクが全て完了したのちに取り組む
  • このタスクが完了し次第、下記コマンドを実行してデータベースをリセットする(デプロイのタスクにあるとおり、Heroku上では一定時間経過すると画像が消える。そのため、本番環境で表示される画像は、全てS3に保存されている状態が好ましい)
    % heroku run DISABLE_DATABASE_ENVIRONMENT_CHECK=1 rails db:drop db:create db:migrate
@tatsumiwa-pg tatsumiwa-pg self-assigned this Jan 12, 2022
@tatsumiwa-pg tatsumiwa-pg added this to the 2/19/2022 milestone Jan 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant