Single-binary self-hosted uptime monitoring and status pages on Rust axum: HTTP probes, Lighthouse audits, SEO crawler, and PDF reports.
axumdockerrustself-hostedsqlitestatus-pageuptime-monitoringvite
1#!/bin/sh
2#
3# For easy server deploys add this post-receive hook to your server in a bare
4# repo somewhere like /srv/git/status/hooks/post-receive and make a git clone
5# in /srv/docker/status. This script runs on push to rebuild and redeploy
6# the docker container.
7
8while read oldrev newrev ref; do
9 if [ "$ref" = "refs/heads/master" ]; then
10 unset GIT_DIR
11 START_TIME=`date +%s`
12 cd /srv/docker/status
13 git pull
14 docker-compose up --build --detach
15 docker system prune --force
16 END_TIME=`date +%s`
17 echo Total build time: `expr $END_TIME - $START_TIME`s
18 fi
19done