1.3 Commit Application Code

Learning Objectives

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

Checkin application code to GitHub

Slide1

EXERCISE: Checkin application code to GitHub

  1. From your AWSCLI instance, go to the web directory.
  2. $ cd /home/ec2-user/continuous_integration_example/software/src/web
    					
  3. Open the index.jsp file
    $ sudo vim index.jsp
    				
  4. Make a modification to the contents of the file and save it.
  5. Add the file in Git
    $ git add index.jsp
    				
  6. Commit the file to Git
    $ git commit -m "Modify the application code"
    				
  7. Push it to the Git master.
    $ git push
    				  

EXERCISE: Checkin application code to GitHub (OPTIONAL)

  1. From your AWSCLI instance, go to the sample_app.
  2. $ cd /home/ec2-user/sample_app/app/views/pages
    				
  3. Open the home.html.erb file
    $ sudo vim home.html.erb
    			
  4. Make a modification to the contents of the file and save it.
  5. Add the file in Git
    $ git add .
    			
  6. Commit the file to Git
    $ git commit -m "Modify the application code"
    			
  7. Push it to the Git master.
    $ git push