所以...
看起来有两种方法可以开始使用 Spree,只要将它实现到你的 Rails 应用程序中,这两种方法都不起作用......
方法A
$ spree mystore
结果
spree: command not found
方法B
$ rails cart
$ cd cart
$ rails g spree:site
结果
我吐出了“rails”命令的手册页,好像它不知道我在说什么。
Usage:
rails new APP_PATH [options]
Options:
-J, [--skip-prototype] # Skip Prototype files
-T, [--skip-test-unit] # Skip Test::Unit files
[--dev] # Setup the application with Gemfile pointing to your Rails checkout
-G, [--skip-git] # Skip Git ignores and keeps
-m, [--template=TEMPLATE] # Path to an application template (can be a filesystem path or URL)
-b, [--builder=BUILDER] # Path to an application builder (can be a filesystem path or URL)
等等...
这是我所做的:
$ sudo gem install spree #and all of its dependencies
我的宝石文件:
source :rubygems
# Generic gem dependencies first
gem 'mysql2'
gem 'newrelic_rpm'
# Followed by spree itself first, all spree-specific extensions second
gem 'spree'
gem 'spree_active_shipping', :git => 'https://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'
# EOF
然后跑了
$ bundle install
那么我错过了什么,我美妙的 SO 社区?