GitMSTwebsite

____________________________________________________


Options for faculty/student websites with campus domain (mst.edu) in the URL:

  1. https://web.mst.edu/~yourname (Standard HTML websites: campus is trying to remove all of these, so good luck getting one now.)
  2. Google sites (not a real static website, overly constrained, and not a professional url).
  3. https://yourname.git-pages.mst.edu (this guide)


Gitlab-pages on git.mst.edu

I find that hosting a static HTML site with Gitlab is easier and more convenient than using rsync with a traditional server, for example.
I have outlined the steps to get your basic HTML website on https://git.mst.edu


0a. Watch this:
https://www.youtube.com/watch?v=TWqh9MtT4Bg


0b. Read more if you want:
https://git.mst.edu/help/user/project/pages/index.md


  1. log into https://git.mst.edu in the web interface.

  1. In the web interface, create a group, named as you want your website named (e.g., yourname).

  1. In the web interface, create a git project/repo within that group called the same as the group, e.g., 'yourname.git-pages.mst.edu'

  1. Clone the project to your local machine:

$ git clone https://whateveryourrepourlis


  1. Copy a template .gitlab-ci.yml file into your root repo directory.

There is a Gitlab-given template, and I have attached the base/root of my Git repository, including that file: ./sites-template.zip


  1. As in the template, create a folder called public/ in your root repo directory.

  1. Copy your website files (at minimum this means public/index.html directory (string case matters), just like it were a normal web server public folder.

  1. In the git repository: add, commit, push, double-check.

  1. Your website then automatically will appear at:

https://yourname.git-pages.mst.edu




Backlinks: index:ITextras