Changes between Initial Version and Version 1 of DespoinaLog_molgenis14


Ignore:
Timestamp:
2013-01-04T14:17:37+01:00 (11 years ago)
Author:
antonak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DespoinaLog_molgenis14

    v1 v1  
     1Deploy on tomcat6 and mysql
     2
     3#####################################
     4# SOP: Installation of tomcat6 + mysql app (any gcc member)
     5#####################################
     6
     7# Change lines below to match your app and environment
     8app=animaldb
     9# On CentOS VM:
     10export CATALINA_HOME=/usr/share/tomcat6/
     11# on SuSE VM:
     12export CATALINA_HOME=/srv/tomcat6/
     13
     14# Become molgenis user
     15sudo su - molgenis
     16cd /srv/molgenis
     17
     18# If /srv/molgenis doesn't exist, ask 'root' user to run installation SOP
     19
     20# Checkout
     21mkdir $app
     22cd $app
     23git clone https://github.com/molgenis/molgenis.git
     24git clone https://github.com/molgenis/molgenis_apps.git
     25cd molgenis_apps
     26
     27# Optionally: check and make sure both Tomcat and MySQL are running
     28sudo service tomcat6 status
     29sudo service mysqld status
     30
     31# Create mysql
     32mysql -u molgenis -pmolgenis -e "create database $app";
     33
     34# Generate war
     35ant -f build_$app.xml clean-generate-compile-war
     36
     37# Delete previous war, if updating.
     38rm ${CATALINA_HOME}/webapps/$app.war
     39
     40# Copy new war (tomcat will automatically reload the app)
     41newgrp tomcat; cp dist/war/$app.war ${CATALINA_HOME}/webapps/$app.war; exit