diff --git a/Readme.md b/Readme.md index da5cb98..776003c 100644 --- a/Readme.md +++ b/Readme.md @@ -4,7 +4,7 @@ This repo contains technical notes from the preparation for the Braids: Intro to The slides for the workshop live in their own repo at: https://git.hackersanddesigners.nl/hrk/Braid-slides and are viewable at https://braids.hackersanddesigners.nl/slides/ -We’ve set up a Forgejo instance (you're probably reading this there) on a Raspberry Pi, accessible over the web via Tinc. During the workshop, user account registration was temporarily open. After a short introduction to the basics of Git, participants were invited to clone the workshop repository, create a personal branch (for example braids/), make a few small edits to the starter HTML page, commit their changes, and push the branch back to Forgejo. A webhook on the same machine published each pushed branch to a shared gallery site, so everyone could immediately view each other’s pages in the browser and iterate with additional commits. +We’ve set up a Forgejo instance (you're probably reading this there) on a Raspberry Pi, accessible over the web via Tinc. During the workshop, user account registration was temporarily open. After a short introduction to the basics of Git, participants were invited to clone the workshop repository, create a personal branch (for example braids/my-name), make a few small edits to the starter HTML page, commit their changes, and push the branch back to Forgejo. A webhook on the same machine published each pushed branch to a shared gallery site, so everyone could immediately view each other’s pages in the browser and iterate with additional commits. The Forgejo repository is configured with a push webhook that calls a small deployment script on the Raspberry Pi. When a branch is pushed, the webhook triggers the script to fetch the latest updates from Forgejo, export the contents of each participant branch, and write them to the web server directory under a per-branch path. It also regenerates the gallery index page so new or updated branches appear immediately. This provides a near real-time “publish on push” loop during the workshop. The main branch was protect to commits in the Forgejo repo settings. @@ -25,7 +25,7 @@ Create mount directory: `sudo mkdir /media/ssd ` -Test mount. +Test mount `sudo mount /dev/sda1 /media/ssd` If it works add it to fstab @@ -48,11 +48,11 @@ Install docker with: Create user (in current user group) `sudo usermod -aG docker $USER` -Logout -> logout +Logout +`logout` -Check if the group exist -> groups +Check if the group exist +`groups` test: `docker run hello-world`