| 1 | == SORTA == |
| 2 | |
| 3 | Molgenis-connect is available as a service running at http://molgenis.org/molgenis-connect |
| 4 | [[BR]][[BR]] |
| 5 | |
| 6 | The source code can be downloaded fromhttps://github.com/molgenis/molgenis/releases/tag/v1.15.0, which can be adapted and used locally as open source under the LGPLv3 license |
| 7 | |
| 8 | == How to deploy Molgenis-connect in tomcat 7== |
| 9 | [[BR]] |
| 10 | |
| 11 | '''Step 1 - get tomcat 7'''[[BR]] |
| 12 | * Download tomcat 7 from: http://apache.xl-mirror.nl/tomcat/tomcat-7/v7.0.67/bin/apache-tomcat-7.0.67.tar.gz |
| 13 | [[BR]] |
| 14 | |
| 15 | '''Step 2 - get SORTA war'''[[BR]] |
| 16 | * Download SORTA war from https://molgenis26.target.rug.nl/downloads/sorta/Molgenis-connect.war |
| 17 | |
| 18 | [[BR]] |
| 19 | '''Step 3 - configure Molgenis-connect property file'''[[BR]] |
| 20 | * Create the directory ~/.molgenis/molgenis-connect and create a file called molgenis-server.properties in this folder (~ is your home folder) |
| 21 | * Add user and database properties to this file, such as this example: |
| 22 | {{{ |
| 23 | db_user=molgenis |
| 24 | db_password=molgenis |
| 25 | db_uri=jdbc:mysql://localhost/molgenis-connect |
| 26 | admin.password=admin |
| 27 | user.password=admin |
| 28 | }}} |
| 29 | * If these properties are not present, Molgenis-connect will not start. This properties-file should be in your home folder, if the file is not there yet, just create it. |
| 30 | [[BR]] |
| 31 | |
| 32 | '''Step 4 - configure tomcat 7'''[[BR]] |
| 33 | * Create a file called setenv.sh in apache-tomcat-7.0.67/bin/ |
| 34 | * Add the configuration to the file, such as this example: |
| 35 | {{{ |
| 36 | CATALINA_OPTS="-Xmx2g -XX:MaxPermSize=256m -XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled -Dmolgenis.home=~/.molgenis/molgenis-connect" |
| 37 | }}} |
| 38 | |
| 39 | |
| 40 | |
| 41 | [[BR]] |
| 42 | '''Step 5 - deploy Molgenis-connect in tomcat 7'''[[BR]] |
| 43 | * Unzip apache-tomcat-7.0.67.tar.gz |
| 44 | * Move Molgenis-connect.war to apache-tomcat-7.0.67/webapps/ |
| 45 | * Rename Molgenis-connect.war to ROOT.war |
| 46 | * start up tomcat |
| 47 | {{{ |
| 48 | sh apache-tomcat-7.[version.number]/bin/catalina.sh start |
| 49 | }}} |