At one point, the Internet was a place where anyone could carve out a little piece and say, "This is me." (source)
Yeah... I feel that.
You know, gunicorn just kind of worked with no fuss.
(SIGHUP works as advertised and now I don't have downtime when I update my site.)
I feel like usually software doesn't do that for me so I feel grateful for that.
Despite being a myself human, I feel is if I have no real understanding of how to teach humans how to solve math problems. I just go off vibes and what-seems-to-work-in-practice and then kind of pray.
Trying to teach robots is even worse, because I'm not a robot, so I don't even have empathy as a compass to fall back on.
Me learning how to send HUP to gunicorn.
#!/usr/bin/env bash
set -euo pipefail
umask 002
reload() {
uv sync --all-extras --no-dev
uv run --no-sync python3 manage.py migrate
kill -HUP "$GUNICORN_PID"
}
trap reload HUP
# Initial sync and migrate
uv sync --all-extras --no-dev
uv run --no-sync python3 manage.py migrate
# Start gunicorn in background
uv run --no-sync gunicorn atheweb.wsgi &
GUNICORN_PID=$!
# Wait for gunicorn, restarting wait after signals
while kill -0 "$GUNICORN_PID" 2>/dev/null; do
wait "$GUNICORN_PID" || true
done
Somethings comes over me when I'm coding. It's like I can't stop until everything is written and polished and perfect. Or it'll just bug me to the point I can't work on anything else.