View source | Discuss this page | Page history | Printable version   

Release Management/Upgrading Demos

Release Management/Internal

Index


Contents

Introduction

We being the Release management team, as a part of our daily work we need to keep demo servers updated to the latest OpenbravoERP release/MP. So this wiki is to guide any new person doing the same.

Pre-Requisites

Steps to meet the Pre-Requisites

Note: Follow these steps only if pre-requisites are not met.
wget http://apache.cyberuse.com/tomcat/tomcat-6/v6.0.20/bin/apache-tomcat-6.0.20.tar.gz
tar -xvzf apache-tomcat-6.0.20.tar.gz
cd apache-tomcat-6.0.20
bin/startup.sh
Note: Make sure CATALINA_HOME and CATALINA_BASE are set as path to apache-tomcat-6.0.20 before running startup.sh
Note: And remember to open the new port in EC2 security group (demo).
eg. hg clone -r 2.50MP2 https://code.openbravo.com/erp/devel/main /opt/openbravo
cd /opt/openbravo
cp config/Openbravo.properties.template config/Openbravo.properties
vi config/Openbravo.properties # And edit the username/password for db and system, point the source path to the above (/opt/openbravo).
Note: Edit config/Openbravo.properties file to have new port for tomcat.
chown openbrav:openbravo /opt/openbravo -R
Note: Make sure openbravo user exists in tomcat group and visa-versa.

Process

Note: this script deactivates the admin role and other features which are not required for demo servers
rm -rf /var/lib/tomcat-6/webapps/openbravo/ && unzip -q /tmp/openbravo.war -d /var/lib/tomcat-6/webapps/openbravo/ && chown tomcat:tomcat -R /var/lib/tomcat-6/webapps/openbravo/ &&/usr/local/sbin/restoreOB && /usr/local/sbin/restoreOB
Click on openbravo link on the left top corner and select the admin role.
wget http://downloads.sourceforge.net/project/openbravo/03-openbravo-updates/2.50MP3/OpenbravoERP-2.50.14398.obx?use_mirror=biznetnetworks
Note: the link is of MP3 as OBX for MP4 is not present.
General Setup => Application => Module Management => Add Modules => Browse File System
Give the path of the file and press Continue.
cd /opt/openbravo # or what ever the path of source directory is.
ant war # this will create war file /opt/openbravo/lib/openbravo.war
pg_dump -U tad -h localhost -F c -b -v -f /tmp/tad.dmp openbravo
Note: enable /usr/local/sbin/deactivate_options_ob_demo.sql script and run 
rm -rf /var/lib/tomcat-6/webapps/openbravo/ && unzip -q /tmp/openbravo.war -d /var/lib/tomcat-6/webapps/openbravo/ && chown tomcat:tomcat -R /var/lib/tomcat-6/webapps/openbravo/ &&/usr/local/sbin/restoreOB && /usr/local/sbin/restoreOB

Replication

To replicate across the other demo servers either repeat the above whole process

OR

rm -rf /var/lib/tomcat-6/webapps/openbravo/ && unzip -q /tmp/openbravo.war -d /var/lib/tomcat-6/webapps/openbravo/ && chown tomcat:tomcat -R /var/lib/tomcat-6/webapps/openbravo/ &&/usr/local/sbin/restoreOB && /usr/local/sbin/restoreOB

Retrieved from "http://wiki.openbravo.com/wiki/Release_Management/Upgrading_Demos"

This page has been accessed 5,124 times. This page was last modified on 2 February 2010, at 07:17. Content is available under Creative Commons Attribution-ShareAlike 2.5 Spain License.