This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
deployment:majorupgrade [2014/08/09 10:08] asok created |
deployment:majorupgrade [2014/08/09 10:33] (current) asok |
||
---|---|---|---|
Line 21: | Line 21: | ||
====The Upgrade==== | ====The Upgrade==== | ||
- | The upgrade usually comes in two zip files, **WEB-INF.zip** and **html.zip**. | + | The upgrade usually comes in two zip files, **WEB-INF.zip** and **html.zip**. Copy these from workshop into the respective folders: |
+ | html.zip /usr/tomcat/webapps/da \\ | ||
+ | WEB-INF.zip /usr/tomcat/webapps/da/WEB-INF \\ | ||
====The Process==== | ====The Process==== | ||
Line 27: | Line 29: | ||
- Take a database backup (Please see: [[Deployment: PostgreSQL| PostgreSQL - Dumping and Restoring Data]]) and bring it to your own system or another server using sftp (probably, FileZilla). If not feasible, copy the zipped backup into **/root** folder (for Linux) or the Desktop (for Windows). | - Take a database backup (Please see: [[Deployment: PostgreSQL| PostgreSQL - Dumping and Restoring Data]]) and bring it to your own system or another server using sftp (probably, FileZilla). If not feasible, copy the zipped backup into **/root** folder (for Linux) or the Desktop (for Windows). | ||
- Take a backup of the entire system by zipping the folder da to **da.zip** and then setting it aside to **/root** folder (for Linux) or the Desktop (for Windows). It is also advisable to separately copy **da.globals** to a convenient place so that you don't have to open the entire archive, in case you need to compare it with the new file later. | - Take a backup of the entire system by zipping the folder da to **da.zip** and then setting it aside to **/root** folder (for Linux) or the Desktop (for Windows). It is also advisable to separately copy **da.globals** to a convenient place so that you don't have to open the entire archive, in case you need to compare it with the new file later. | ||
- | - Delete the folders **WEB-INF/lib/**, **WEB-INF/reports/** and **WEB-INF/resource/**. You must delete them totally or otherwise results could be unpredictable. | + | <file> |
- | - Copy **WEB-INF.zip** into folder **da/WEB-INF/** and extract it there, overwriting whatever that may come in it's way. | + | cd /usr/tomcat/webapps |
+ | zip -r /root/da.zip da | ||
+ | cp da/WEB-INF/da.globals /root | ||
+ | </file> | ||
+ | - Delete the folders **html/**, **WEB-INF/lib/**, **WEB-INF/reports/** and **WEB-INF/resource/**. You must delete them totally or otherwise results could be unpredictable. | ||
+ | <file> | ||
+ | cd /usr/tomcat/webapps/da | ||
+ | rm -rf html | ||
+ | rm -rf WEB-INF/lib | ||
+ | rm -rf WEB-INF/resource | ||
+ | rm -rf WEB-INF/reports | ||
+ | |||
+ | </file> | ||
- Copy **html.zip** into folder **da/** and extract it there, overwriting whatever that may come in it's way. | - Copy **html.zip** into folder **da/** and extract it there, overwriting whatever that may come in it's way. | ||
+ | <file> | ||
+ | cd /usr/tomcat/webapps/da | ||
+ | unzip html.zip | ||
+ | </file> | ||
+ | - Copy **WEB-INF.zip** into folder **da/WEB-INF/** and extract it there, overwriting whatever that may come in it's way. | ||
+ | <file> | ||
+ | cd /usr/tomcat/webapps/da/WEB-INF | ||
+ | unzip WEB-INF.zip | ||
+ | </file> | ||
- Check **da.globals** to reinsert custom parameters, if any, by comparing it with the old one. | - Check **da.globals** to reinsert custom parameters, if any, by comparing it with the old one. | ||
- Restart tomcat. | - Restart tomcat. |