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

前端 未结 2 359
天命终不由人
天命终不由人 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...

    0 讨论(0)
  • 2021-01-29 03:03

    New git version of paperclip gem now works with aws-sdk-s3 gem, add this to Gemfile:

    #Paperclip
    gem 'paperclip', git: 'git://github.com/thoughtbot/paperclip.git'
    
    0 讨论(0)
提交回复
热议问题