3

我正在尝试在 Heroku 上配置 Spree,我让网站使用 Thin 离线运行,但它时不时会抛出错误

“注册计算器 Calculator::PriceBucket 时出错”

我尝试将 config.cache_classes 设置为 on 和 off

我的gem文件也配置如下

source 'http://rubygems.org'

# Generic gem dependencies first
gem 'rails', '3.0.7'
gem 'sqlite3', :group => :development
gem 'aws-s3'

# Followed by spree itself first, all spree-specific extensions second
gem 'spree', :git => 'git://github.com/spree/spree.git'    
gem 'spree_active_shipping', :git => 'git://github.com/spree/spree_active_shipping.git'
gem 'spree_product_assembly', :git => 'git://github.com/spree/spree-product-assembly.git'
gem 'spree_static_content', :git => 'git://github.com/spree/spree_static_content.git'
gem 'spree_heroku', '1.0.0', :git => 'git://github.com/paxer/spree-heroku.git'
# EOFs

正如这里建议的那样http://railsdog.lighthouseapp.com/projects/31096/tickets/1777-error-registering-calculator-calculatorpricebucket

我怎样才能解决这个问题?

谢谢

4

2 回答 2

0

也许这对你有帮助......价格桶计算器

于 2011-04-13T13:06:10.727 回答
0

我通过更改 gemfile 中的 gem 加载顺序来解决这个问题,如下 URL 所示:

http://railsdog.lighthouseapp.com/projects/31096/tickets/1777-error-registering-calculator-calculatorpricebucket

于 2011-07-17T03:29:05.063 回答