Changes between Version 28 and Version 29 of SopUpdateBbmriApp


Ignore:
Timestamp:
2013-05-29T13:59:01+02:00 (11 years ago)
Author:
antonak
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SopUpdateBbmriApp

    v28 v29  
    1010
    1111= Detailed tutorial =
    12 = Export war & mysql file =
    13 =  1. Run the app on your molgenis-legacy workspace (using tomcat, not standalone)
     12= 1. Export war & mysql file locally  =
     13== 1.1 Run the app on your molgenis-legacy workspace (using tomcat, not standalone) ==
    1414 1. Export the war file
    1515   1. In eclipse: File--> export --> Web --> war file
    1616 1. The database is updated as follows: apply the mysql changes that you have made locally to the database on the server, so that you have the latest version of data for the server and the changes you want applied there. About the database changes you need to track them in a migration a file like one in the end of this document.
    1717
    18  =
    19 = '''Deploy to server''' =
     18= '''2. Deploy to test server''' =
    2019 1. As also listed here: http://www.molgenis.org/wiki/MolgenisServers the '''test server''' is at molgenis35(https://molgenis35.target.rug.nl/biobanks/) and the '''production server''' at molgenis14(https://catalogue.bbmri.nl/biobanks/) .
    2120 1. First deploy at test server, notify [mailto:david.van.enckevort@nbic.nl david.van.enckevort AT nbic.nl]. He will notify BBMRI office, they will review the changes and if everything is ok proceed to updating bbmri production server.
     
    2322   1. Ask credentials for molgenis35/molgenis14 from Pieter or Morris.
    2423
    25 === create migration script according to data in live server ===
    26  1. If you know the exact changes of the database, compared to the old version in live server, then the migration script is the commands that synchornize the two versions.
    27  1. You can compare the mysql dump files between the live and the local version. This is easier if you dump only the schemas (not the data) .
     24=== 2.1 Create migration script according to data in live server ===
     25 1. If you know the exact changes of the database, compared to the old version in live server, then the migration script is consisted of the commands that synchornize the two versions.
     26 1. You do not know, you can can compare the mysql dump files between the live and the local version. This is easier if you dump only the schemas (not the data) .
    2827   1. First ssh to molgenis14
    2928   1. create a dump file: mysqldump --no-data, -d bbmri -u molgenis –pmolgenis > ~/databaseDumps/<date>bbmriDBlive.mysql
     
    3130   1. diff <date>bbmriDBlive.mysql <date>bbmriDBlocal.mysql
    3231
    33 === copy war file & migration script from your  computer to test server ===
     32=== 2.2 copy war file & migration script from your  computer to test server ===
    3433 1. Copy the war file and the mysql migration script  from your computer  to the server as follows:
    3534   1. scp  <filename>.war molgenis@molgenis35.target.rug.nl:./
    3635   1. scp <migrationScriptFilename> molgenis@molgenis35.target.rug.nl:./
    3736
    38 === Export data from LIVE server ===
     37=== 2.3 Export data from LIVE server ===
    3938 1. Ssh to the server:
    4039   * ssh  !molgenis@molgenis14.target.rug.nl
     
    4241   * mysqldump bbmri -u molgenis –p > ~/databaseDumps/<date>bbmriDB.mysql
    4342
    44 === Copy data from LIVE server to your computer ===
     43=== 2.4 Copy data from LIVE server to your computer ===
    4544 1. scp  molgenis@molgenis14.target.rug.nl:./databaseDumps/<date>bbmriDB.mysql  ./mysql<date>LIVEdata.mysql
    4645
    47 === Copy data from your computer to test server ===
     46=== 2.5 Copy data from your computer to test server ===
    4847 1. scp   ./mysql<date>LIVEdata.mysql molgenis@molgenis35.target.rug.nl:./databaseDumps/mysql<date>LIVEdata.mysql
    4948
    50 === Deploy at test server ===
     49=== 2.6 Deploy at test server ===
    5150 1. Ssh to the server:
    5251   * ssh  !molgenis@molgenis35.target.rug.nl
    5352   * You are now at /srv/molgenis/ where your files where copied.
    5453
    55 === Backup ===
     54=== 2.7 Backup ===
    5655 1. '''BACKUP your DATABASE FIRST''':
    5756   * mysqldump bbmri -u molgenis –pmolgenis  > ~/databaseDumps/<date>bbmriDB.mysql
    5857   * Check the dumbed file if it is not just an error file …
    5958
    60 === Insert the data from live server to test server ===
     59=== 2.8 Insert the data from live server to test server ===
    6160compare the sql file from test server with the live server. then make a migrationscript and insert this tables into testserver
    6261
     
    6463  ===
    6564
    66 === Apply migration steps: ===
     65=== 2.9 Apply migration steps: ===
    6766 * mysql -u molgenis –pmolgenis
    6867 * use bbmri