Source code for https://marioslab.io. Uses basis-site to generate a static website from the content in the site/
folder. Additionally implements dynamic content via a light-weight web server based on Javalin, serving HTTP RPC requests for functionality like comments.
There's a duct-tape script called publish.sh
which:
- Pushes local changes to the GitHub repository.
- Calls the endpoint https://marioslab.io/api/reloadstatic, which makes the server pull the changes from GitHub and re-generate the static content.
There's a duct-tape script called reload.sh
which:
- Pushes local changes to the GitHub repository.
- Calls the endpoint https://marioslab.io/api/reload, which makes the server pull the changes from GitHub and shuts down the server.
- The
start.sh
script, with which the server was started, pulls in the latest changes from GitHub, recompiles the server, and re-starts it.
Install goaccess via the package manager. Then run the stats.sh
file.