我需要配置我在Amazon S3上的图像,但是当我试图这样做的版本下2-2稳定的狂欢,我才意识到,这个配置被移动从管理面板.
我在某处读到这个配置会产生一些问题,因此在2-2上删除了它.但我认为功能仍然以某种方式工作.
当我尝试将这些配置添加到我的config/initialize/spree.rb时,我收到错误,因为这些首选项不再存在.
preference :s3_access_key, :string
preference :s3_bucket, :string
preference :s3_secret, :string
Run Code Online (Sandbox Code Playgroud)
这些偏好在2-1稳定但不在2-2稳定上找到
https://github.com/spree/spree/blob/2-1-stable/core/app/models/spree/app_configuration.rb https://github.com/spree/spree/blob/2-2-stable /core/app/models/spree/app_configuration.rb
有没有办法让它与Heroku一起使用?