Release SOPs

From UG

Revision as of 19:03, 17 January 2011 by Alex (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search


[edit] SOP on CT2 application deployment using scripts

mantis 0002474

Login to CT2 production at 72.3.184.74
access root account
cd to ct2deployer
type ./step1.sh
Alex and Paul will receive confirmation e-mails for tomcat stop, mysql backup, webapps backup, tomcat start
please read the message after step 1 is done on the cli. 
Step2
cat the read and follow instructions on the step2_readme
type cat step2_readme
Step3
after step2 is finished proceed to execute step3.sh script
type ./step3.sh
You will get a message on the cli and an e-mail stating that you are now ready for developers to deploy ct2 application as needed.

[edit] SOP on CT2 application rollback

m 0002475

cd /opt/tomcat/bin/
./shutdown.sh
rm -rf /opt/tomcat/webapps/*.war
rm -rf /opt/tomcat/webapps/Client
rm -rf /opt/tomcat/webapps/Internal
check /opt/tomcat/webapps/ to make sure that all Client and internal .war files and folders are deleted.
cd /opt/tomcat/bin/
./startup.sh
go to http://ct.jaguarfreight.com:8080 [^] and login to manager
make sure to clear any CT2 hanging applications, by clicking on undeploy by the application.
cd /opt/tomcat/bin/
./shutdown.sh
cp -ra /opt/wbackup/backup_{mmddyyyy}/webapps/*.war /opt/tomcat/webapps
cd /var/backup/
mysql -uroot -p{mysqlpassword} cybertraxInternal < ct2i_{date_time}.sql
service mysqld restart
cd /opt/tomcat/bin/
./startup.sh
check http://ct.jaguarfreight.com:8080/internal [^] and http://ct.jaguarfreight.com:8080/Client [^]
to make sure rollback is successful.
Personal tools