mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Update documentation of database setup
db:setup is doing db:schema and db:seed already
This commit is contained in:
@@ -53,14 +53,11 @@ Configure the site:
|
||||
cp config/application.yml.example config/application.yml
|
||||
edit config/application.yml
|
||||
|
||||
Create the development and test databases, using the settings specified in `config/database.yml`:
|
||||
Create the development and test databases, using the settings specified in `config/database.yml`
|
||||
and load data from `db/seeds.rb`:
|
||||
|
||||
rake db:setup
|
||||
|
||||
Then load the schema and some seed data with the following command:
|
||||
|
||||
rake db:schema:load db:seed
|
||||
|
||||
Load some default data for your environment:
|
||||
|
||||
rake openfoodnetwork:dev:load_sample_data
|
||||
@@ -99,4 +96,4 @@ usage instructions.
|
||||
|
||||
## Licence
|
||||
|
||||
Copyright (c) 2012 - 2013 Open Food Foundation, released under the AGPL licence.
|
||||
Copyright (c) 2012 - 2015 Open Food Foundation, released under the AGPL licence.
|
||||
|
||||
Reference in New Issue
Block a user