6.2 Script a deployment

Learning Objectives

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

Modify Capistrano script.

  1. From the root directory of your AWSCLI instance change directory to devopsinthecloud.
  2. $ cd /home/ec2-user/devopsinthecloud/deployment/config/
  3. Open the file as shown below.
    $ sudo vim deploy.rb
  4. A list of some of the deploy tasks is provided below.
  5. Capify is run in the jenkins.template
  6. You can also find these files by going to https://github.com/stelligent/devopsinthecloud/blob/master/deployment/config/deploy.rb.
  7. Review the Deployment Jenkins job.
  8. Make a modification to the contents of the file and save it.
  9. Add the file in Git
    $ git add .
  10. Commit the file to Git
    $ git commit -m "Modified deployment script"
  11. Push it to the Git master.
    $ git push