Created
June 7, 2013 00:21
-
-
Save aamax/5726189 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails new ptsspree20_static_test | |
cd ptsspree20_static_test | |
echo "ruby-1.9.3" >.ruby-version | |
echo "ptsspree20_static_test" >.ruby-gemset | |
rvm gemset delete ptsspree20_static_test | |
rvm gemset create ptsspree20_static_test | |
rvm gemset use ptsspree20_static_test | |
echo "gem 'spree', '2.0.0'" >> Gemfile | |
echo "gem 'spree_auth_devise', :github => 'spree/spree_auth_devise', :branch => '2-0-stable'" >> Gemfile | |
echo "gem 'spree_gateway', :github => 'spree/spree_gateway', :branch => '2-0-stable'" >> Gemfile | |
sed '/jquery-rails/d' Gemfile>Gemfile.new | |
mv Gemfile.new Gemfile | |
echo "gem 'jquery-rails', '~> 2.2.1' " >>Gemfile | |
bundle install | |
rails g spree:install --sample=false --seed=false | |
sed -e 's/LegacyUser/User/g' config/initializers/spree.rb >/tmp/spree.rb | |
mv /tmp/spree.rb config/initializers/ | |
bundle exec rake db:migrate | |
bundle exec rake db:seed | |
bundle exec rake spree_sample:load |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
thanks for your help. here is my walk through your script. this is why i'm so frustrated with spree. I think i may just have to build my own for now... | |
NOTES: | |
1) before line 18, I had to edit the Gemfile. change the rails version from 3.2.12 to 3.2.13 and then run bundle update rather than bundle install so the rails version got updated. | |
2) got error on bundle update - | |
Gem::InstallError: spree requires RubyGems version >= 1.8.25. Try 'gem update --system' to update RubyGems itself. | |
An error occurred while installing spree (2.0.0), and Bundler cannot continue. | |
Make sure that `gem install spree -v '2.0.0'` succeeds before bundling. | |
ran gem update --system as instructed. then ran bundle update again | |
3) got new error on bundle update: | |
NoMethodError: private method `open' called for Gem::Package:Class | |
An error occurred while installing rake (10.0.4), and Bundler cannot continue. | |
Make sure that `gem install rake -v '10.0.4'` succeeds before bundling. | |
changed to the global gemset and removed rake entirely, installed 10.0.4, switched back to the project gemset. ran bundle update again - same error |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment