molgenis/molgenis — pull request #835 by dennishendriksen (2013-10-28 20:24:49+00:00)
Title: Define home directory per MOLGENIS instance

- Define molgenis home directory per app
- Change filestore directory to ${molgenis.home}/data/filestore
- Change elasticsearch directory to ${molgenis.home}/data/elasticsearch

**Info
Running your app form maven using Jetty?
${molgenis.home} is set to ${user.home}/.molgenis/omx and ${user.home}/.molgenis/lifelines
Running your app in Tomcat?
Add -Dmolgenis.home= to JAVA_OPTS in setenv.sh in the bin dir of Tomcat

**What you have to do
Place your molgenis-server.properties in ${molgenis.home}
Add the following properties to molgenis-server.properties:
- db_driver=com.mysql.jdbc.Driver
- db_uri=jdbc:mysql://localhost/?innodb_autoinc_lock_mode=2&rewriteBatchedStatements=true