Before first use, you need to configure /config/secrets.yml
An example file is available in /config/secretes.yml.template
Database configuration is in config/database.yml
You can find an examples of databases.yml in /config :
-
database.yml.mysql2.template : config file based on mysql2
-
database.yml.sqlite3.template : config file based on sqlite3
Then, use :
RAILS_ENV=development bundle exec rake db:setup RAILS_ENV=test bundle exec rake db:setup RAILS_ENV=production bundle exec rake db:setup
Default database is empty
You will need an admin account to configure the application. There is 2 ways to create an admin account :
-
In development environnement : create default accounts
Run :
rake db:populate
It will :
-
Flush current database and recreate it from the schema
-
Seed the database with default values (Roles for example)
-
Create default users :
-
an admin: [email protected]
-
a helpdesk user : [email protected]
-
3 basic users : [email protected], [email protected], [email protected]
-
All password are : password
-
In production environnement : create an account manually or connect from omniauth then set admin Role to the created account