2.6 Document Deployment Steps

Learning Objectives

By the end of this lesson you will be able to:

Assumptions

  1. Environment(s) have been properly installed and configured and are running.
  2. Build has successfully created a WAR file.

High-Level Steps

  1. Stop the Tomcat service.
  2. Delete any binary artifacts in Tomcat (e.g. brewery.war).
  3. Copy the WAR file generated during the build process into Tomcat.
  4. Stop the Tomcat service.
  5. Verify the updated application is running by launching browser.

Detailed Steps

  1. Stop the Tomcat service.
    $ sudo service tomcat6 stop
    					
  2. Delete any binary artifacts in Tomcat (e.g. brewery.war).
    $ sudo rm -rf /usr/share/tomcat6/webapps/brewery*
    					
  3. 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
    					
  4. Stop the Tomcat service.
    $ sudo service tomcat6 start
    					
  5. Verify the updated application is running by launching browser.

Examples

  1. Download example instructions from https://s3.amazonaws.com/cdcourse/pub/files/provision_ec2_centos.pdf.

EXERCISE: Document additional deployment steps

  1. 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).