Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed issue with db bootstrap running twice.

reduce noise with install_generator

[fixes #977]
  • Loading branch information...
commit 7d213829038c54de732478417a37a4081774fe01 1 parent 5984f7e
@cmar cmar authored joneslee85 committed
View
3  Rakefile
@@ -114,8 +114,7 @@ task :sandbox do
require 'spree_core'
Spree::SandboxGenerator.start ["--lib_name=spree", "--database=#{ENV['DB_NAME']}"]
- Spree::InstallGenerator.start ["--auto-accept", "--test_app", "--skip-install-data"]
+ Spree::InstallGenerator.start ["--auto-accept"]
- cmd = "bundle exec rake db:bootstrap AUTO_ACCEPT=true"; puts cmd; system cmd
cmd = "bundle exec rake assets:precompile:nondigest"; puts cmd; system cmd
end
View
4 core/lib/generators/spree/install/install_generator.rb
@@ -115,7 +115,7 @@ def install_migrations
def run_migrations
if @run_migrations
say_status :running, "migrations"
- rake('db:migrate')
+ quietly { rake 'db:migrate' }
else
say_status :skipping, "migrations (don't forget to run rake db:migrate)"
end
@@ -135,7 +135,7 @@ def populate_seed_data
def load_sample_data
if @load_sample_data
say_status :loading, "sample data"
- rake('spree_sample:load')
+ quietly { rake 'spree_sample:load' }
else
say_status :skipping, "sample data (you can always run rake spree_sample:load)"
end

0 comments on commit 7d21382

Please sign in to comment.
Something went wrong with that request. Please try again.