Herokuにデプロイ済みのアプリに、publicフォルダ内の画像を変えたい。
今回変更したいのはアプリ内のボタンなどに使うアイコンです。
新しい画像をgit pushしたところ、ウェブ上で画像に変化は見れませんでした。
現在アプリは、rails+heroku+aws s3の構成で画像を保存する形式です。
ユーザーがアップロードした写真はawsのc3へ保存されます。
デプロイ時に下記のようなログがあったのが気になっています。
remote: You set your `config.active_storage.service` to :local in production. remote: If you are uploading files to this app, they will not persist after the app remote: is restarted, on one-off dynos, or if the app has multiple dynos remote: Heroku applications have an ephemeral file system. To remote: persist uploaded files, please use a service such as S3 and update your Rails remote: configuration.
git push後にheroku restartなども試したのですが、変化が見せません。
public内の画像の変化を反映させたいです。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。