Heroku的基本Spree 2.0.3应用程序部署无法正常工作

时间:2013-08-06 23:50:26

标签: ruby-on-rails heroku spree

我正在尝试启动和运行最基本的应用程序,并且我得到了着名的“抱歉出了问题”

我正在遵循本指南:http://guides.spreecommerce.com/developer/heroku.html

我生成了一个新的vanilla应用程序并成功将其部署到Heroku。我做了所需的更改以使用postgres。 “heroku open”向我展示了预期的导轨闪屏。然后:

spree install --auto-accept

我按照指南,添加ruby版本,进行细微更改spree.rb和application.rb

然后

> git add .
> git commit -am "added spree"
> git push heroku master
> heroku run rake db: migrate

localhost:3000向我展示了一个快乐的狂欢应用程序,错过了图片,因为它们应该在s3上,但是,heroku已经坏了。我的“heroku日志”页面如下所示:

2013-08-06T23:30:04.173821+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/act
ionpack-3.2.13/lib/abstract_controller/base.rb:167:in `process_action'
2013-08-06T23:30:04.173985+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/act
ivesupport-3.2.13/lib/active_support/notifications.rb:123:in `block in instrumen
t'
2013-08-06T23:30:04.174527+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/jou
rney-1.0.4/lib/journey/router.rb:56:in `each'
2013-08-06T23:30:04.174857+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rac
k-1.4.5/lib/rack/conditionalget.rb:25:in `call'
2013-08-06T23:30:04.175424+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/act
ionpack-3.2.13/lib/action_dispatch/middleware/show_exceptions.rb:56:in `call'
2013-08-06T23:30:04.175577+00:00 app[web.1]:   vendor/bundle/ruby/1.9.1/gems/rac
k-cache-1.2/lib/rack/cache/context.rb:185:in `lookup' 

现在,当我运行heroku迁移时,我得到了弃用警告,我有“Rails 2.3-style plugins in vendor / plugins!”但是从我所看到的并不是什么打破它。

有什么建议吗?

1 个答案:

答案 0 :(得分:0)

您需要为Spree应用程序播种。

heroku run rake db:seed

这引入了,

  1. 国家
  2. 角色
  3. https://github.com/spree/spree/tree/master/core/db/default/spree

    此种子数据是加载默认主页所必需的。

相关问题