Static Page Generator #5
Loading…
Reference in a new issue
No description provided.
Delete branch "dev"
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?
Summary
This pull request replaces the existing Flask application with a static site generator. It also adds a workflow to automatically build and deploy the static site to the
pages
branch using Forgejo Actions.This should make the site faster and more secure, as it no longer requires a dedicated server application. In the future, the site could also be hosted directly using Forgejo Pages. The new approach could also reduce the risk of downtime due to server/code issues.
The changes are already deployed on the dev instance and can be viewed at https://dev.private.coffee.
Changes
Replaced Flask Application with Static Site Generator:
main.py
now generates static HTML files from Jinja2 templates instead of serving them using Flask.templates
directory.icon
filter for rendering SVG icons.Added Workflow for Automatic Deployment:
.forgejo/workflows/build.yml
and.forgejo/workflows/build-dev.yml
to automate the build and deployment process.pages
/pages-dev
branch.Deployment Notes
pages
branch, git on the server will need to be configured to rebase instead of merge when pulling changes from thepages
branch.Checkout
From your project repository, check out a new branch and test the changes.