paperclip working in development but not working in production?

前端 未结 2 709
夕颜
夕颜 2021-01-02 22:00

I\'m pretty new to rails and seem to be having an issue with the paperclip gem. I installed the gem and it works well in development (localhost:3000) but when I\'m running i

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-02 22:09

    You could be having a few problems. However, the first is that you can not write to the file system on Heroku. You will have to implement a different storage mechanism such as s3. You can read about this limitation here: http://devcenter.heroku.com/articles/read-only-filesystem

提交回复
热议问题