Permalink
Browse files

Improved handling of seed and fixture data with new rake db:seed task…

… (borrowed form upcoming Rails 3.0) and rake db:etl:load and rake db:etl:dump

[#494 state:resolved]
[#550 state:resolved]
[#552 state:resolved]
  • Loading branch information...
1 parent de84716 commit 16c9ccf1fa3cf258f763441fda46a9cd4c4e471b @schof schof committed Jul 3, 2009
View
@@ -1,21 +1,18 @@
== Installation and Setup
-Once you have extracted the files into the directory where you would like to
-install Spree:
-
1. Create the MySQL/PostgreSQL/SQLite databases for your Web site. You only
need to create the "production" database, but you may also want to create
the "development" and "test" databases if you are developing extensions
or running tests.
2. Edit config/database.yml to taste.
-3. Run the database migrations and set up the admin user:
+3. Run the database migrations, seed data and set up the admin user:
- $ rake db:migrate db:admin:create RAILS_ENV=production
+ $ rake db:bootstrap RAILS_ENV=production
- (NOTE: In dev mode you can run `rake db:bootstrap` which is equivalent to above but also gives you some sample data.)
+ (NOTE: In dev mode you can just run `rake db:bootstrap`.)
4. Start it like a normal Rails application. To test execute:
@@ -10,7 +10,6 @@ def breadcrumbs(taxon, separator=" » ")
crumbs << content_tag(:li, content_tag(:span, t('products')))
end
crumb_list = content_tag(:ul, crumbs)
-
content_tag(:div, crumb_list + content_tag(:br, nil, :class => 'clear'), :class => 'breadcrumbs')
end
Oops, something went wrong.

0 comments on commit 16c9ccf

Please sign in to comment.