Balaji Vajjala's Blog

A DevOps Blog from Trenches

01.08

  • 1.8 Make a change to a deployment script
    • Learning Objectives
    • Deployment
    • EXERCISE: Make a change to a deployment script and commit to GitHub.
    • EXERCISE: Make a change to a deployment script and commit to GitHub (OPTIONAL).

1.8 Make a change to a deployment script

Learning Objectives

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

  • Change an existing deployment script and commit it to GitHub.

Deployment

Slide1

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

  1. From the AWSCLI, go to the deployment directory
  2. Open the deployment file as shown below.

    “` $ sudo vim deploy.rb

    “`

  3. Make a modification to the contents of the file and save it.

  4. Add the file in Git

    “` $ git add deploy.rb

    “`

  5. Commit the file to Git

    “` $ git commit -m “Modified deployment script”

    “`

  6. 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. Open the deployment file as shown below.

    “` $ sudo vim deploy.rb

    “`

  3. Make a modification to the contents of the file and save it.

  4. Add the file in Git

    “` $ git add deploy.rb

    “`

  5. Commit the file to Git

    “` $ git commit -m “Modified deployment script”

    “`

  6. Push it to the Git master.

    “` $ git push

    “`