Changes between Initial Version and Version 1 of PostGreSQLBasedServerDeploy


Ignore:
Timestamp:
2016-11-28T14:27:17+01:00 (8 years ago)
Author:
mdehaan
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • PostGreSQLBasedServerDeploy

    v1 v1  
     1= Deployment SOP for developers =
     2This SOP describes how to deploy MOLGENIS v2.0 on a server
     3with a clean Golden VM deployed
     4
     5 * Login on VM
     6{{{
     7ssh lobby+molgenis[0-9]
     8}}}
     9
     10 * Execute the following as molgenis user.
     11{{{
     12#
     13# Edit the existing molgenis-server.properties file
     14#
     15echo '
     16db_user=molgenis 
     17db_password=molgenis 
     18db_driver=org.postgresql.Driver
     19db_uri=jdbc\:postgresql\://localhost/molgenis?reWriteBatchedInserts=true&autosave=CONSERVATIVE
     20admin.password=admin 
     21user.password=admin 
     22mail.username=<Username>
     23mail.password=<Password>
     24' > ~/.molgenis/molgenis-server.properties
     25
     26#
     27# Install tomcat users
     28#
     29nano -w ~/apache-tomcat/conf/tomcat-users.xml
     30
     31#
     32# Paste just before the closing tag from tomcat-users (</tomcat-users>):
     33# Update the password to the true passwords.
     34#
     35<role rolename="manager-gui"/>
     36<user username="molgenis" password="password" roles="manager-gui,manager-script"/>
     37<role rolename="login"/>
     38<user username="molgenis_user" password="password" roles="login"/>
     39
     40#
     41# Start Tomcat server
     42#
     43sudo service tomcat7 start
     44
     45#
     46# Start Apache HTTPD server
     47#
     48sudo service httpd start
     49}}}
     50 * [http://www.molgenis.org/wiki/GccSopInstallationDeployServerInJenkins Deploying a server in Jenkins]
     51 * Make sure that relevant daemons startup on reboot.
     52{{{
     53sudo chkconfig
     54}}}
     55   If httpd, tomcat7 or mysqld are ''off'', turn them on:
     56{{{
     57sudo chkconfig httpd on
     58sudo chkconfig tomcat7 on
     59sudo chkconfig mysqld on
     60}}}
     61 * Starting and stopping daemons
     62{{{
     63sudo service [daemon] [start|stop|status|reload|restart]
     64}}}
     65   For example to restart Tomcat:
     66{{{
     67sudo service tomcat7 restart
     68}}}