01.07
- 1.7 Make a change to a simple build script
- Learning Objectives
- Build
- EXERCISE: Make a change to a simple build script and commit to GitHub.
- EXERCISE: Make a change to a simple build script and commit to GitHub (OPTIONAL).
1.7 Make a change to a simple build script
Learning Objectives
By the end of this lesson you will be able to:
- Change an existing build script and commit it to GitHub.
Build
EXERCISE: Make a change to a simple build script and commit to GitHub.
- From the AWSCLI, go to the software directory.
Open the build file as shown below.
“` $ sudo vim build.xml
“`
Make a modification to the contents of the file and save it.
Add the file in Git
“` $ git add .
“`
Commit the file to Git
“` $ git commit -m “Modified build script”
“`
Push it to the Git master.
“` $ git push
“`
EXERCISE: Make a change to a simple build script and commit to GitHub (OPTIONAL).
- From the AWSCLI, go to sample_app.
Open the build file as shown below.
“` $ sudo vim sample_data.rake
“`
Make a modification to the contents of the file and save it.
- From the root directory of your EC2 instance change directory to sample_app.
Add the file in Git
“` $ git add .
“`
Commit the file to Git
“` $ git commit -m “Modified build script”
“`
Push it to the Git master.
“` $ git push
“`