Sophie

Sophie

distrib > Mageia > 2 > i586 > media > core-release-src > by-pkgid > 60e2ba7448213ca70e785ad3000939a8 > files > 2

mageia-maintainers-database-0.0-4.mga2.src.rpm

Hello,

You’ve just installed mageia-maintainers-database, thanks.

Now, before you’re done, there are additional steps to get it working.

First, you need to setup a database for it and mention it in the file
config/database.yml

You can take a look at the existing file to see how it’s working

For postgresql it could be something like that (be sure postgresql is running):

# su - postgres
$ psql
CREATE ROLE mageia_maint LOGIN ENCRYPTED PASSWORD '********' NOINHERIT VALID UNTIL 'infinity';
CREATE DATABASE mageia_maint_prod WITH ENCODING='UTF8' OWNER=mageia_maint TEMPLATE=template0;
\q

Your config/database.yml should look like this:
production:
  adapter:   postgresql
  database:  mageia_maint_prod
  host:      localhost
  encoding:  utf8
  username:  mageia_maint
  password:  "********"

Then you will need to run the following command:
RAILS_ENV=production rake db:migrate

It will create the necessary tables for the application.

After that, reload apache and you’re done.

Regards,

Rémy CLOUARD