Carrierwave/Fog - Argument error, provider not recognized

后端 未结 2 1327
鱼传尺愫
鱼传尺愫 2021-01-13 23:02

I\'m using Carrierwave 0.5.3 and Fog to upload images to Amazon-S3.

The setup works smoothly when running locally, no errors.

But when running on Heroku, upl

相关标签:
2条回答
  • 2021-01-13 23:28

    The error was due to the fact that I had mistakenly added the initializer to the .gitignore-file. Thus, it was never uploaded to Heroku.

    0 讨论(0)
  • 2021-01-13 23:30

    Adding this for completeness...

    After smashing my head against the wall for hours with this error message, I found out that I had this line at the beginning of the carrierwave initializer:

    if Rails.env.test?
      ...
    

    So the initializer was only considered in the test environment. After removing it, everything worked as expected.

    0 讨论(0)
提交回复
热议问题