website/start-caddy-tildeserv.sh

9 lines
236 B
Bash
Raw Permalink Normal View History

#!/usr/bin/env bash
set -xe
if [ -f "$HOME/.webserver.sock" ]; then
rm -f "$HOME/.webserver.sock" || true
fi
exec /run/current-system/sw/bin/nix-shell --command "caddy run -config vern.Caddyfile -adapter caddyfile --watch --resume"