1.8 Make a change to a deployment script

Learning Objectives

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

Deployment

Slide1

EXERCISE: Make a change to a deployment script and commit to GitHub.

  1. From the AWSCLI, go to the deployment directory
  2. $ cd /home/ec2-user/continuous_integration_example/software/deployment/config
    				
  3. Open the deployment file as shown below.
    $ sudo vim deploy.rb
    			
  4. Make a modification to the contents of the file and save it.
  5. Add the file in Git
    $ git add deploy.rb
    					
  6. Commit the file to Git
    $ git commit -m "Modified deployment script"
    					
  7. Push it to the Git master.
    $ git push
    					  

EXERCISE: Make a change to a deployment script and commit to GitHub (OPTIONAL).

  1. From the AWSCLI, go to the devopsinthecloud directory.
  2. $ cd /home/ec2-user/devopsinthecloud/deployment/config/
    				
  3. Open the deployment file as shown below.
    $ sudo vim deploy.rb
    			
  4. Make a modification to the contents of the file and save it.
  5. Add the file in Git
    $ git add deploy.rb
    					
  6. Commit the file to Git
    $ git commit -m "Modified deployment script"
    					
  7. Push it to the Git master.
    $ git push