Switching over to a static build #64
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ruangrupa/lumbung.space#64
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Convert https://git.autonomic.zone/ruangrupa/lumbung.space/src/branch/main/compose.yml to only use Nginx and expose a volume where we can transfer the required static files to
Convert https://git.autonomic.zone/ruangrupa/lumbung.space/src/branch/main/.drone.yml to build the site and run scripts and then copy the files over to the Nginx volume
This would give us the advantage that if the CI/CD is passing then we know all the scripts work instead of them silently failing in the docker environment. We'll also have linkable logs instead of stuff in our terminals only accessible via
abra
.In order to retain regular update, we can schedule a cron in the Drone UI to re-run the CI/CD.
If we can make this work then the site won't keep flapping because there will be no dev hugo server running, just nginx hosting some files that are periodically updated in the background via CI. This will quiet the noisy monitoring notifications we get on autonomic side as well due to small site updates.
moving away from the development server is always a good idea. Do we have budget for this? If so I say a big yes!
Update: we had a meet to work on this. We kind of came to the conclusion that we shouldn't touch it right now. It is a complicated deployment but also it satisfies this "git push and deploy" approach for others hacking on the site which has reduced barriers to getting things live. This has its drawbacks ofc (live stack traces) but for now, maybe this is fine. It is stable. When Kotec gets onboarded, maybe there willl be a change in direction but that is up to them.