mirror of
https://github.com/internetee/registry.git
synced 2025-08-06 01:35:10 +02:00
added rake db:all:setup and friends
This commit is contained in:
parent
545e828fdf
commit
e20e577914
6 changed files with 153 additions and 87 deletions
11
README.md
11
README.md
|
@ -37,12 +37,19 @@ Manual demo install and database setup:
|
|||
cp config/initializers/devise_secret_example.rb.txt config/initializers/devise_secret.rb # and edit
|
||||
bundle exec rake assets:precompile
|
||||
|
||||
Create database manually, example:
|
||||
Create registry database manually, example:
|
||||
|
||||
create database registry owner registry encoding 'UTF-8' LC_COLLATE 'et_EE.utf8' LC_CTYPE 'et_EE.utf8' template template0;
|
||||
create database registry_production owner registry encoding 'UTF-8' LC_COLLATE 'et_EE.utf8' LC_CTYPE 'et_EE.utf8' template template0;
|
||||
rake db:schema:load
|
||||
rake db:seeds
|
||||
|
||||
Or create all databases:
|
||||
|
||||
rake db:all:setup # will create all databases and loads all schemas
|
||||
rake db:all:create # creates all databases
|
||||
rake db:all:schema:load # loads all schemas
|
||||
rake db:all:schema:dump # dumps all schemas
|
||||
|
||||
Production install (database schema should be loaded and seeds should be present)
|
||||
|
||||
# at your local machine
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue