← Back to Home

Ask the Argus

Python Test Servers and GitHub

The Process for Testing and Publishing

Synopsis

In this entry I document the process of running a python server to test run any recent updates to my website. After that, I list the process for uploading these changes to GitHub. I also explore the mechanics of what is going on in this process.

Questions & Objectives
  1. I want to test my site updates before I run them on GitHub to identify any bugs.
  2. I also reindex with pagefind so any searches remain relevant.
  3. Next, I want to publish those updates onto GitHub.
Process
    1. I first open up a python server. But what does this mean exactly? At some point I had a bout of confusion. As it turns out, the command python3 -m http.server 8000 when employed in a specific directory, acts as a host for that directory. It took me days to remember doing this.

      Python Server Explained 1

      Python Server Explained 1
      Python Server Explained 1

      Python Server Explained 2

      Python Server Explained 2
      Python Server Explained 2

      Python Server Explained 3

      Python Server Explained 3
      Python Server Explained 3

      Python Server Explained 4

      Python Server Explained 4
      Python Server Explained 4

      Python Server Explained 5

      Python Server Explained 5
      Python Server Explained 5

      Python Server Explained 6

      Python Server Explained 6
      Python Server Explained 6
    2. I type the python server command and type the "server" address into my browser to verify there aren't any bugs, and everything appears fine.

      Setting up the Python Browser

      Python Server Command
      Python Server Command

      Linking my Browser Up

      Linking Up
      Linking Up

      Verifying the Page

      Browser Test
      Browser Test
    3. Shevek makes me a guide for indexing my page with pagefind and updating to GitHub.

      Pagefind Indexing Explained 1

      Pagefind Indexing Explained 1
      Pagefind Indexing Explained 1

      Pagefind Indexing Explained 2

      Pagefind Indexing Explained 2
      Pagefind Indexing Explained 2

      Pagefind Indexing Explained 3

      Pagefind Indexing Explained 3
      Pagefind Indexing Explained 3

      Pagefind Indexing Explained 4

      Pagefind Indexing Explained 4
      Pagefind Indexing Explained 4

      Pagefind Indexing Explained 5

      Pagefind Indexing Explained 5
      Pagefind Indexing Explained 5

      Pagefind Indexing Explained 6

      Pagefind Indexing Explained 6
      Pagefind Indexing Explained 6

      Pagefind Indexing Explained 7

      Pagefind Indexing Explained 7
      Pagefind Indexing Explained 7
    4. Lastly I ask Shevek to guide me through making updates to GitHub. I make all the necessary upadtes to my Index page and sitemap etc. as well before proceeding.

      GitHub Update 1

      GitHub 1
      GitHub 1

      GitHub Update 2

      GitHub 2
      GitHub 2

      GitHub Update 3

      GitHub 3
      GitHub 3

      GitHub Update 4

      GitHub 4
      GitHub 4

      GitHub Update 5

      GitHub 5
      GitHub 5

      GitHub Update 6

      GitHub 6
      GitHub 6
Conclusions

The exact process for testing and publishing the webpage is: edit, test on python server, index with pagefind, update on GitHub. Some particularly important areas worth noting are when creating the python server, it acts as a host for whatever directory the command is set in.

Shevek's Haiku

Code leaves quiet hands
Sent upstream into the world
Small pushes, growing