🚀 Deploying GitLearn
This site is four plain HTML files — no build step, no server required. Pick the option that matches your setup and follow the steps.
Only these four files need to be on the web server. Everything else is development tooling.
<script src="https://cdn.tailwindcss.com">. If employees are on a network that blocks external URLs, styles will not load. Test this on your company network before announcing the tool.The repo is already on GitHub. Enabling Pages takes one click — GitHub serves the HTML files directly from the repo.
main and folder to / (root). Click Save.https://pankitpanchal.github.io/learnGit/
git push to main automatically updates the live site within ~30 seconds. No extra steps needed.Since your team already uses GitLab, this is the cleanest option for an internal tool. Push the repo to your company GitLab instance, add one CI file, and GitLab serves the site automatically. Access can be restricted to company employees only.
gitlab.company.com/team/gitlearn.git remote add gitlab git@gitlab.company.com:team/gitlearn.git
git push gitlab main
.gitlab-ci.yml file in the root of the repo with the following content. This tells GitLab CI to publish the HTML files as a website:
pages:
stage: deploy
script:
- mkdir public
- cp index.html examples.html comparisons.html gitlab.html deploy.html public/
artifacts:
paths:
- public
only:
- main
git add .gitlab-ci.yml
git commit -m "chore: add GitLab Pages deployment"
git push gitlab main
https://team.gitlab.company.com/gitlearn/
main re-runs the pipeline and updates the live site automatically. No manual steps needed when you add new content.If your company already uses Azure, this is a natural fit. Azure Static Web Apps has a generous free tier and deploys automatically from your GitHub repo via GitHub Actions.
- Subscription / Resource Group — use your company's group
- Name — e.g.,
gitlearn - Plan — Free
- Region — closest to your team
- Organisation: PankitPanchal
- Repository: learnGit
- Branch: main
- Build Preset: Custom
- App location:
/ - Output location:
/ - Leave API location empty
https://random-name.azurestaticapps.net. You can add a custom domain (e.g., gitlearn.company.com) under Custom Domains in the Azure resource.If your company has an internal Windows server with IIS running, you can host the site there with no cloud services needed. Fully air-gapped if required.
# PowerShell — copy files to the server
$files = @("index.html","examples.html","comparisons.html","gitlab.html","deploy.html")
$dest = "\\internal-server\inetpub\wwwroot\gitlearn\"
New-Item -ItemType Directory -Force $dest
$files | ForEach-Object { Copy-Item $_ $dest }
- Open IIS Manager on the server
- Right-click Sites → Add Website
- Set Physical path to your destination folder
- Set Binding to your internal hostname, e.g.,
gitlearn.internalon port 80 - Click OK
gitlearn.internal (or whatever hostname you chose) to the server's IP address. Employees can then open http://gitlearn.internal in any browser.cdn.tailwindcss.com, download the Tailwind standalone CLI and generate a CSS file:
# Download the Tailwind standalone CLI for Windows
# https://github.com/tailwindlabs/tailwindcss/releases/latest
# Generate a CSS file from all four HTML files
tailwindcss.exe -i "" --content "*.html" -o tailwind.css --minify
<link rel="stylesheet" href="tailwind.css">
| Deployment | How to update |
|---|---|
| GitHub Pages | Just git push — site updates automatically within ~30 seconds |
| GitLab Pages | Just git push gitlab main — pipeline re-runs and redeploys |
| Azure Static Web Apps | Just git push — GitHub Actions redeploys automatically |
| IIS / Internal Server | Re-copy the updated HTML files to the server folder. Consider a scheduled task or a simple deploy script to automate this. |