Skip to content

1. Principles and practices

This week I worked on workstation Preperation, configuring my web site, and defining my final project.

Workstation Preperation

I used Adam Harris’s video to install applications and update the FabAcademy Website: My video tutorial on GIT using HTTPS: https://youtu.be/s0d39k-IqN4

  • Installed Git (From http://git-scm/downloads)
  • Installed python 3.9.10 from the Microsoft Store
  • Installed mkdocs, using > pip install mkdocs
  • Upgraded pip using > pip install -upgrade pip
  • Installed vscode 1.63.2
  • Created new website and cloned it to my laptop: MyDocuments\FabAcademy\site
  • Intalled the python extension to vscode
  • Committed the Website using the vscode terminal >git add >git commit -m “Initial Commit” >git push

Problems pushing site to GitLab

  • Had problems with putting my changes to the GitLab website.
  • These are recommendations that My Instructor Adam Harris suggested: I looked at the .git folder to see why things weren’t working. I don’t know the details deep enough to understand it all, but what I do know it seemed to be pushing to a different branch. I only figured it out when I cloned your gitlab site to my PC, then copied your docs folder into it. I successfully: Staged Changed Committed then Pushed Once I did that, I compared your .git folder to mine. Other than the specific changes to each file, I noticed that yours lists “main” where mine listed “master” Here’s a screenshot of the folder difference. MIne is the left side and yours is on the right:

I didn’t see a “main” branch in the online repository though so I am not sure what was going on with that.

What I recommend is to completely delete all the gitlab projects for the site on your computer, then reclone it by clicking “clone–>Visual Studio Code (HTTPS)” which is what I did. From this point, you should be getting the “master” branch since it is the only one available. Once it is opened in VScode, make sure that you do the 3 steps I listed above, and if you manually commit or push, make sure that you don’t list “main” as the branch.

I cleaned out my local site, and cloned my GitLab site. Then I updated all images and documents. Staged Changes Committed Changes Pushed the site

When I viewed my Website....I did NOT see my changes! Adam informed me I needed to do a cnrl + F5, to force updates from the server (old data had been cached) on each page. The new Website updates were seen!


Last update: February 23, 2022