2012-01-13 123 views
0

需要一些帮助。Spree错误500

我已经在slicehost部署礼包(0.70.3)(Ubuntu的,ruby1.8.7,Rails的 3.1.3),安装了热潮宝石,在采样数据加载 成功以下对热潮启动手动和我的步骤am 使用乘客(它在localhost:3000上运行)。然而,当我上传到我的 服务器时,而不是看到spree界面,我得到了 错误消息。从生产日志:

Processing by HomeController#index as HTML Completed 500 Internal Server Error in 22ms ActiveRecord::StatementInvalid (Could not find table 'product_groups'):

如何我可以得到这个工作?

网站:http://www.nutxboutique.com

+0

我已经将“AllowOverride all”和“Options -MultiViews”添加到我的虚拟主机配置设置中以放宽apache安全设置。 – thiakx 2012-01-15 09:54:58

回答

0

production.log是rails日志。看来你的问题在rails完成加载之前就已经发生了。如果您使用apache,请检查/发布apache日志,它可能会有更多线索来了解发生了什么。

+0

感谢您的回复。我忘记授予production.log 666权限,这就是为什么它是空的。现在它正确地记录了错误:在2010年1月16日星期一07:44:25 +0000处启动GET“/”为123.125.71.99 2012 通过HomeController处理#索引为HTML 已完成500内部服务器错误22毫秒 ActiveRecord :: StatementInvalid (找不到表'product_groups'): – thiakx 2012-01-16 07:42:19

+1

这看起来像我没有在生产环境的数据库上运行迁移。你需要这样做。 – 2012-01-16 08:30:51

+0

感谢@RyanBigg的回复。我遵循http://guides.spreecommerce.com/getting_started.html上的指南并运行(1)sudo rails g spree:site(2)sudo rake db:bootstrap(它由迁移,种子,加载示例数据和创建admin)...是我需要运行的吗? – thiakx 2012-01-16 08:40:02