Tuesday, 29 November 2016

Assignment 2: Me, Myself and I Deployment

To deploy my website I had to go through many steps.

Step 1: Create an account
First, I had to create a GitHub account by signing up to www.gibhub.com. To sign up I used my Knumber to create my account.


Step 2: GitHib Repository
The next step was to create a Github Repository. These files are used to store my website online. Once I ensured I was logged in I created a repository called WebDevelopment. Once I created my repository I opened Terminal. Terminal is an interfaced used to connect with the underlying operating system via a shell. To get set up I entered the following command lines:


  • PWD
    • This produces the directory that the system is currently at.
  • LS
    • Lists the directory
  • CD
    • Allows users to change where the directory is located
  • Git Status
    • Displays the Github application
  • Git clone https://github.com/K00174394/WebDevelopment.git
    • Links the repository to the Github
  • Git checkout --orphan gh-pages
    • Creates a new orphan branch
  • git add --all
    • Adds all the files that are available on the repository file to github
  • git commit -m "Adding Pages"
    • Commits all changes made to the files and uploads them to github
  • Git push --origin gh-pages
    • Pushes all the changes 

This allowed me to upload my website online. When uploading my websites and viewing it online I noticed some items do not work correctly including my Google Maps. My next step is to modify these pages and ensure they work correctly.

Link: https://k00174394.github.io/WebDevelopment/





No comments:

Post a Comment