Skip to content

Resetting a Demo App During Development

Kenton Newby edited this page Sep 8, 2017 · 2 revisions

While trying to troubleshoot issues getting the gem to install properly, I created this script to reset the DB and run a bunch of rake tasks. Probably not commit-worthy, so not adding to the repo, but might be useful, at least during initial development.

#!/bin/bash                                                                                                                       
bundle exec rake db:reset -q
                                                                                                                                                                                                                                    
bundle exec rails g spree:install --no-sample -f -q                                                                                  
bundle exec rails g solidus:auth:install -q                                                                                       
bundle exec rake railties:install:migrations -q                                                                                   
bundle exec rake db:migrate -q
                                                                                                                                                                                                                                  
bundle exec rails g solidus_marketplace:install -q                                                                                
bundle exec rake db:migrate -q
                                                                                                                                                                                                                                  
bundle exec rake spree_sample:load -q                                                                                             
bundle exec rake spree_sample:suppliers -q                                                                                        
bundle exec rake spree_sample:drop_ship_orders -q