Changes between Version 28 and Version 29 of SopUpdateBbmriApp
- Timestamp:
- 2013-05-29T13:59:01+02:00 (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SopUpdateBbmriApp
v28 v29 10 10 11 11 = 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) == 14 14 1. Export the war file 15 15 1. In eclipse: File--> export --> Web --> war file 16 16 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. 17 17 18 = 19 = '''Deploy to server''' = 18 = '''2. Deploy to test server''' = 20 19 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/) . 21 20 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. … … 23 22 1. Ask credentials for molgenis35/molgenis14 from Pieter or Morris. 24 23 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) . 28 27 1. First ssh to molgenis14 29 28 1. create a dump file: mysqldump --no-data, -d bbmri -u molgenis –pmolgenis > ~/databaseDumps/<date>bbmriDBlive.mysql … … 31 30 1. diff <date>bbmriDBlive.mysql <date>bbmriDBlocal.mysql 32 31 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 === 34 33 1. Copy the war file and the mysql migration script from your computer to the server as follows: 35 34 1. scp <filename>.war molgenis@molgenis35.target.rug.nl:./ 36 35 1. scp <migrationScriptFilename> molgenis@molgenis35.target.rug.nl:./ 37 36 38 === Export data from LIVE server ===37 === 2.3 Export data from LIVE server === 39 38 1. Ssh to the server: 40 39 * ssh !molgenis@molgenis14.target.rug.nl … … 42 41 * mysqldump bbmri -u molgenis –p > ~/databaseDumps/<date>bbmriDB.mysql 43 42 44 === Copy data from LIVE server to your computer ===43 === 2.4 Copy data from LIVE server to your computer === 45 44 1. scp molgenis@molgenis14.target.rug.nl:./databaseDumps/<date>bbmriDB.mysql ./mysql<date>LIVEdata.mysql 46 45 47 === Copy data from your computer to test server ===46 === 2.5 Copy data from your computer to test server === 48 47 1. scp ./mysql<date>LIVEdata.mysql molgenis@molgenis35.target.rug.nl:./databaseDumps/mysql<date>LIVEdata.mysql 49 48 50 === Deploy at test server ===49 === 2.6 Deploy at test server === 51 50 1. Ssh to the server: 52 51 * ssh !molgenis@molgenis35.target.rug.nl 53 52 * You are now at /srv/molgenis/ where your files where copied. 54 53 55 === Backup ===54 === 2.7 Backup === 56 55 1. '''BACKUP your DATABASE FIRST''': 57 56 * mysqldump bbmri -u molgenis –pmolgenis > ~/databaseDumps/<date>bbmriDB.mysql 58 57 * Check the dumbed file if it is not just an error file … 59 58 60 === Insert the data from live server to test server ===59 === 2.8 Insert the data from live server to test server === 61 60 compare the sql file from test server with the live server. then make a migrationscript and insert this tables into testserver 62 61 … … 64 63 === 65 64 66 === Apply migration steps: ===65 === 2.9 Apply migration steps: === 67 66 * mysql -u molgenis –pmolgenis 68 67 * use bbmri