Rails 5 on heroku forgets files stored with paperclip and turbolinks: No route matches

前端 未结 2 388
天命终不由人
天命终不由人 2021-01-29 02:24

I have a blog with file up-/download via paperclip 5.1.0 and turbolinks 5.0.1. Upload without validation works fine now, but download is only working for a short period after up

2条回答
  •  半阙折子戏
    2021-01-29 02:53

    This is the root cause: When the dyno is restartet periodically or with heroku restart then the filesystem is initialised and new.

    I am still struggling to add Amazon S3 persistence to my app...

提交回复
热议问题