Application Deployment
Introduction
Application deployment is the deployment of the new war file on the server. New War file contains the new changes that are made into the site by the developer.
Procedures
1. Get the file from the person through mail or the sametime.
2. FTP from desktop to the server(xxx615.lvs.owner.com)
i) Change the path to place where file is stored
C:
( this will change the directory to c directory from any other directory)
ii) ftp xxx615.lvs.owner.com(server name)
Server will ask for the username and password, enter the password specific to that server.
iii) Now we have to end the file from our desktop to the UNIX server. File transfer can take place in 2 ways- ASCII or BIN.
For unix windows – use ASCII (ASC)
For windows unix – use Binary (BIN)
We are using BIN so next command is
BIN
iv) Put application1.war
This will put the file to server in your user directory.
v) Now check in the server if file has been FULLY transferred or not.
Ls-lt
3. Now file will have rights of staff ownership. Its ownership should be changed to be application1
sudo chown application1:www application1.war
4. Presently we are working in our directory(sn2381123), now, Change to application1 user ID to be able to use the ownership
sudo su application1
5. Go the bin tomcat folder of application1 application
cd /export/apps/tomcat/application1-dev/tomcat-5.0.28/bin
6. Stop the tomcat for application1 application
./stop-tomcat.sh
7. xxx615:root:/export/apps/tomcat/application1-dev/tomcat-5.0.28/bin>ps -ef
grep java
8. copy the result in the notepad it will look something like this
Epreseg is not visible that means, it is not working.
9. Come to webapps folder
cd /export/apps/tomcat/application1-dev/tomcat-5.0.28/webapps
cp /export/apps/tomcat/application1-dev/tomcat-5.0.28/webapps/application1/application1.war . (Current directory)
10. copy new application1.war to /export/apps/tomcat/application1-dev/tomcat-5.0.28/webapps/application1
cd /export/apps/tomcat/application1-dev/tomcat-5.0.28/webapps/application1
cp /home/devuser/EP_Test_June_02/application1.war .
11. then under application1 folder delete everything , except “monitor” folder and application1.war
rm -rf *.jsp
Command to remove all the jsp files, then remove all the remaining folders
rm -rf META-INF WEB-INF env image application1.war script style vssver2.scc
12. Deploy the war file under application1 folder using following command
/usr/java6_64/bin/jar -xvf application1.war
13. Start the Application
cd /export/apps/tomcat/application1-dev/tomcat-5.0.28/bin
./start-tomcat.sh
14. xxx615:root:/export/apps/tomcat/application1-dev/tomcat-5.0.28/bin>ps -ef
grep java
this will show all the "java"process running (if any)
15. logout from application1 user
exit
16. check the log file if the server is started or not
cd /export/apps/tomcat/application1-dev/tomcat-5.0.28/logs
Ls –lrt
17. The file in the end is “catalina.out”
Tail –f catalina.out
Open this file to see if the server is started or not
18. Also check the application site to check if it is still working.
Introduction
Application deployment is the deployment of the new war file on the server. New War file contains the new changes that are made into the site by the developer.
Procedures
1. Get the file from the person through mail or the sametime.
2. FTP from desktop to the server(xxx615.lvs.owner.com)
i) Change the path to place where file is stored
C:
( this will change the directory to c directory from any other directory)
ii) ftp xxx615.lvs.owner.com(server name)
Server will ask for the username and password, enter the password specific to that server.
iii) Now we have to end the file from our desktop to the UNIX server. File transfer can take place in 2 ways- ASCII or BIN.
For unix windows – use ASCII (ASC)
For windows unix – use Binary (BIN)
We are using BIN so next command is
BIN
iv) Put application1.war
This will put the file to server in your user directory.
v) Now check in the server if file has been FULLY transferred or not.
Ls-lt
3. Now file will have rights of staff ownership. Its ownership should be changed to be application1
sudo chown application1:www application1.war
4. Presently we are working in our directory(sn2381123), now, Change to application1 user ID to be able to use the ownership
sudo su application1
5. Go the bin tomcat folder of application1 application
cd /export/apps/tomcat/application1-dev/tomcat-5.0.28/bin
6. Stop the tomcat for application1 application
./stop-tomcat.sh
7. xxx615:root:/export/apps/tomcat/application1-dev/tomcat-5.0.28/bin>ps -ef
grep java
8. copy the result in the notepad it will look something like this
Epreseg is not visible that means, it is not working.
9. Come to webapps folder
cd /export/apps/tomcat/application1-dev/tomcat-5.0.28/webapps
cp /export/apps/tomcat/application1-dev/tomcat-5.0.28/webapps/application1/application1.war . (Current directory)
10. copy new application1.war to /export/apps/tomcat/application1-dev/tomcat-5.0.28/webapps/application1
cd /export/apps/tomcat/application1-dev/tomcat-5.0.28/webapps/application1
cp /home/devuser/EP_Test_June_02/application1.war .
11. then under application1 folder delete everything , except “monitor” folder and application1.war
rm -rf *.jsp
Command to remove all the jsp files, then remove all the remaining folders
rm -rf META-INF WEB-INF env image application1.war script style vssver2.scc
12. Deploy the war file under application1 folder using following command
/usr/java6_64/bin/jar -xvf application1.war
13. Start the Application
cd /export/apps/tomcat/application1-dev/tomcat-5.0.28/bin
./start-tomcat.sh
14. xxx615:root:/export/apps/tomcat/application1-dev/tomcat-5.0.28/bin>ps -ef
grep java
this will show all the "java"process running (if any)
15. logout from application1 user
exit
16. check the log file if the server is started or not
cd /export/apps/tomcat/application1-dev/tomcat-5.0.28/logs
Ls –lrt
17. The file in the end is “catalina.out”
Tail –f catalina.out
Open this file to see if the server is started or not
18. Also check the application site to check if it is still working.