SSG helper scripts
ssg is a static site generator. It is intentionally bare bones. I am using it to generate this website and I wanted to share a Makefile that I am using to make building and “deploying” this site a bit easier.
My general file structure looks something like this:
dev.levlaz.org/
src/
dst/
Makefile
The contents of the Makefile
are shown below.
build:
ssg5 src dst "Lev's Hacking Notes" "http://dev.levlaz.org"
deploy:
doas cp -R dst/* /var/www/htdocs/dev.levlaz.org/
build
runs ssg whenever I want to build a new version of this website.
deploy
moves the files from the local dst
directory to the path
where the webserver can serve up the files. You could probably do
something very similar if you wanted to edit locally and deploy to a
server somewhere else.
update Fri Dec 13 17:38:17 2019
This has matured quite a bit over the last week weeks and we have a problem deployment pipeline now using builds.sr.ht. You can see the Makefile here and the deployment configuration here.
Thank you for reading! Share your thoughts with me on bluesky, mastodon, or via email.
Check out some more stuff to read down below.
Most popular posts this month
- 2024
- Reinstalling Windows at 1am
- SQLite DB Migrations with PRAGMA user_version
- My Custom Miniflux CSS Theme
- How to Disable Wayland in Debian Testing
Recent Favorite Blog Posts
This is a collection of the last 8 posts that I bookmarked.
- Death by a thousand slops from daniel.haxx.se
- The AGI economy is coming faster than you think from Freethink
- Rolling the ladder up behind us from Xe Iaso's blog
- In Praise of “Normal” Engineers from charity.wtf
- Reports of Bluesky's death have been greatly exaggerated from The Torment Nexus
- What Would a Kubernetes 2.0 Look Like from matduggan.com
- We Can Just Measure Things from Armin Ronacher's Thoughts and Writings
- The Gentle Singularity from Sam Altman
Articles from blogs I follow around the net
I went looking for friends, see what I found
Of all the ways this blog have changed my life, the most exciting was in December 2021 when I wrote a post about Ivan Illich that ended up, to my utter astonishment, to get read by almost a hundred people.
via Escaping Flatland July 16, 2025Pluralistic: Ellen Ullman's "Close to the Machine" (16 Jul 2025)
Today's links Ellen Ullman's "Close to the Machine": "Technophilia and Its Discontents." Hey look at this: Delights to delectate. Object permanence: Unethical ethicists; McKinsey covid profiteering; Homeschool-to-prison pipeline Up…
via Pluralistic: Daily links from Cory Doctorow July 16, 2025Setup Mullvad VPN on OpenBSD via WireGuard
Setup Mullvad VPN on OpenBSD via WireGuard 2025-07-16 I’m a big fan of Mullvad’s approach on true privacy and very simple pricing. Most other VPNs market themselves for torrenting anonymously or using streaming services outside of your real location. These …
via bt RSS Feed July 16, 2025Generated by openring