狂欢在安装时不会提供任何主页

时间:2016-01-20 14:37:45

标签: ruby-on-rails spree

我正在尝试从本指南设置基本的狂欢主页。 https://guides.spreecommerce.com/developer/getting_started_tutorial.html。我在这里做了以下

$ rails new shop #I have ommited the version number 4.2.0<br> 
$ cd shop <br>
$ spree install --auto-accept
$ bundle install 
$ bundle update

此过程正常,大约已安装103颗宝石。但是当启动服务器时,访问了 localhost:3000 。我正在获取页面上的默认欢迎,而不是承诺的狂欢主页,更多的是当我访问 localhost:3000 / admin 时我得到NO route matches admin error

因此我认为所有这一切都是因为我提到的版本号丢失了。

我做了以下

$ rails _4.2.0_ new shop<br>
$ cd shop<br>
$ spree install --auto-accept<br> 
$ bundle install

我通过明确指定版本号来解决该错误时得到了jquery gem版本错误。我得到链轮宝石版错误,我不明白是我有什么不对的?或者有一个解决方案。赞赏任何指针

1 个答案:

答案 0 :(得分:1)

执行spree install --auto-accept后,我收到了运行捆绑安装的消息。我认为这是一个安装后消息,因此我正在进行捆绑安装和捆绑更新。然后我继续启动服务器,并显示默认的rails。因此,在运行捆绑安装和捆绑更新之后,继续执行spree install --auto-accept.现在启动服务器。一切都会好起来的