Skip to main content

Deploy: Put Your Site on the Internet

intermediate14 min readLesson 49 of 143

Turn a GitHub repository into a live, shareable URL with GitHub Pages β€” your first real deployment.

A website on your laptop is a rehearsal. Deployment copies it to a server so the world can visit. GitHub Pages deploys straight from a repository β€” free, and perfect for the static sites you build in this course.

Deploying a repo with Pages

  1. Push your project to GitHub (previous lesson)
  2. Repo β†’ Settings β†’ Pages
  3. Source: "Deploy from a branch" β†’ branch main, folder `/ (root)
  4. Save β€” within minutes your site is live at https://your-name.github.io/my-site/

Every push to main redeploys automatically. Deployment becomes a side effect of committing β€” that habit scales all the way to professional teams.

What works on Pages β€” and what does not

Works: HTML, CSS, and client-side JavaScript (everything from Modules 1–4).

Does not: server-side code. Pages serves files; it cannot run a database or a Node server. That is what full hosting platforms are for β€” a natural next step after this course, not a mystery.

Deploy checklist (catch the classic breakages)

  • Paths are case-sensitive on the server: Logo.PNG β‰  logo.png
  • Use relative paths (./styles.css) β€” absolute paths like /Users/ada/... only exist on your machine
  • Test in a private/incognito window β€” caches lie

What you learned

  • Deployment = copying your site to a server the world can reach
  • GitHub Pages deploys from a branch and redeploys on every push
  • Static hosting serves files; servers and databases need full hosting
  • Relative paths + exact case = the two classic deploy bugs

Next: wrap up the module with a checkpoint and a real publication.

Now practice

Deploy: Put Your Site on the Internet β€” PracticeHands-on practice for β€œDeploy: Put Your Site on the Internet”: apply what you just learned in deploy-github-pages.1 challenge Β· Β· ~10 min