02.06
- 2.6 Document Deployment Steps
- Learning Objectives
- Assumptions
- High-Level Steps
- Detailed Steps
- Examples
- EXERCISE: Document additional deployment steps
2.6 Document Deployment Steps
Learning Objectives
By the end of this lesson you will be able to:
- Document the steps for deploying a software package.
Assumptions
- Environment(s) have been properly installed and configured and are running.
- Build has successfully created a WAR file.
High-Level Steps
- Stop the Tomcat service.
- Delete any binary artifacts in Tomcat (e.g. brewery.war).
- Copy the WAR file generated during the build process into Tomcat.
- Stop the Tomcat service.
- Verify the updated application is running by launching browser.
Detailed Steps
Stop the Tomcat service.
“` $ sudo service tomcat6 stop
“`
Delete any binary artifacts in Tomcat (e.g. brewery.war).
“` $ sudo rm -rf /usr/share/tomcat6/webapps/brewery*
“`
Copy the WAR file generated during the build process into Tomcat.
“` $ sudo cp /home/ec2-user/continuous_integration_example/target/deployment/brewery.war /usr/share/tomcat6/webapps
“`
Stop the Tomcat service.
“` $ sudo service tomcat6 start
“`
Verify the updated application is running by launching browser.
Examples
- Download example instructions from https://s3.amazonaws.com/cdcourse/pub/files/provision_ec2_centos.pdf.
EXERCISE: Document additional deployment steps
- Document additional steps that might occur in a deployment process in a text file. Upload a text file with your answers into your cd29artifacts S3 bucket (where 00 is your student id).