0% found this document useful (0 votes)
3 views

Git Assignment

Git hub
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

Git Assignment

Git hub
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

1. Download the website from following url in a directory.

https://www.free-css.com/assets/files/free-css-templates/download/page284/
built-better.zip
2. Initiate the directory with git.
3. Create a rule to ignore the commit of file name README.txt (You have to write
the commit details you will make for any updates in this project)
4. Make commit of whole data with name "initial commit"
5. Make remote access of github repository using ssh access. Do not use https for
remote access.
6. Now commit this code to github in a private reposity name "webdevelopment" in
main branch.
7. Run a linux server with git and docker installed for Dev and Prod environments.
8. Pull the uploaded code from github repo in Linux server using git (remote as
ssh) from main branch for Prod environment.
9. Now run two docker containers named as "myapp-dev" and "myapp-prod" using docker
compose. Use nginx image and github main branch web content in "myapp-prod"
container by using volume. Make sure you should be able to access the web page from
external network.
10. Access the web page and check everthing is working fine.
11. Now create a new branch named "update-webcode-1" from main branch and make
following modifications in web application.
a. Change "OUR SERVICES" to "What We Provide"
b. Change the "Call Us : +01 1234567890" to "Contact Number : 0080099556"
12. Commit the changes.
13. Update the github repository with new branch along with all data.
14. Now pull branch "update-webcode-1" from github (remote as ssh) on Docker server
and make the pulled web content avaliable in the webroot of "myapp-dev" container
and verify new changes have been reflected on web page.
15. If the changes are not sucessfull, you may need to make more modification in
the code and keep testing by using the point number 13, untill the desire results
are achived.
16. When the desired changes are sucessfull, commit the code with message "updated
verion of application final version" and make sure the same verion of application
is available on web server you ran.
17. Now you have to merge the branch "update-webcode-1" in "main" branch and push
the code to github main branch.
18. Pull the code from "main" branch and make sure the latest code is available in
the webroot of "myapp-prod" container and verify the prod url is showing you the
updated verion of application.
19. Delete the branch "update-webcode-1" from local git and github.

You might also like