-
Notifications
You must be signed in to change notification settings - Fork 8
Configuration
The default setup has uses a local mysql database called KBPlus, and requires a user called k-int with (Default) password of k-int to connect. MySQL create statements:
create database KBPlus default charset utf8 default collate utf8_bin;
grant all on KBPlus.* to 'k-int'@'localhost' identified by 'k-int';
grant all on KBPlus.* to 'k-int'@'localhost.localdomain' identified by 'k-int';
grant all on KBPlus.* to 'k-int'@'%' identified by 'k-int';
You may want to grab a dump of the current live db for quick start..
If you're setting up a dev env, add the following file to ~/.grails/demo-config.groovy. This file switches the authentication system to local rather than shib, and allows you to override the database and default admin passwords to keep the local settings different to the defaults that are published in the source code. You can also configure test accounts used in the unit and integration tests using the sysusers array.
localauth=true
dataSource.user="k-int"
dataSource.password="**datasource_pass**"
aggr.es.cluster='**local_es_cluster_name**'
publicationService.baseurl='http://knowplus.edina.ac.uk:2012/kbplus/api'
docstore='**docstore_url**'
sysusers = [
[
name:"admin",
pass:"**your_local_admin_pass**",
display:"Admin",
email:"admin@localhost",
roles:["INST_ADM", "ROLE_ADMIN"]
]
]
The ES mappings from conf_hints/ES_mappings must be copied to the ES installation location, conf/mappings/kbplus