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
EXERCISE: Make a change to a deployment script and commit to GitHub.
- From the AWSCLI, go to the deployment directory
Open the deployment file as shown below.
“` $ sudo vim deploy.rb
“`
Make a modification to the contents of the file and save it.
Add the file in Git
“` $ git add deploy.rb
“`
Commit the file to Git
“` $ git commit -m “Modified deployment script”
“`
Push it to the Git master.
“` $ git push
“`
EXERCISE: Make a change to a deployment script and commit to GitHub (OPTIONAL).
- From the AWSCLI, go to the devopsinthecloud directory.
Open the deployment file as shown below.
“` $ sudo vim deploy.rb
“`
Make a modification to the contents of the file and save it.
Add the file in Git
“` $ git add deploy.rb
“`
Commit the file to Git
“` $ git commit -m “Modified deployment script”
“`
Push it to the Git master.
“` $ git push
“`