Skip to content

Commit

Permalink
fixed issue with db bootstrap running twice.
Browse files Browse the repository at this point in the history
reduce noise with install_generator

[fixes spree#977]
  • Loading branch information
cmar authored and Trung Lê committed Jan 19, 2012
1 parent 5984f7e commit 7d21382
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions core/lib/generators/spree/install/install_generator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 7d21382

Please sign in to comment.