Home / This developer's life / 7/28/2019, server deployments scripts, moving fofou to a different server edit
Try Documentalist, my app that offers fast, offline access to 190+ programmer API docs.
Changed my server deployments scripts for fofou and updatecheck from shell scripts to Go program. I wanted to be able to deploy from Windows (in addition to from Mac) and I started porting shell scripts to batch files (thank god Windows now ships OpenSSh with
scp) but it's better to have one cross-platform implementation and Go is good for that.
Moved fofou from its own server to the same server that runs updatecheck.
Had a temporary snafu with caddy. Caddy eagerly tries to provision let's encrypt certificates for all defined hosts. I didn't yet have DNS changed so that failed which led to Caddy not starting (and making other services unavailable).
The solution to this is two-fold:
first, before changing DNS only provision http by explicitly specifying host as http://updatecheck.io
in Caddy config file
pkill -SIGUSR1 caddyinstead of
systemctl restart caddyto restart Caddy.
pkilltells caddy to re-read config files and if there are errors, it'll revert to previous config.
systemctl restartis like starting from scratch and will stop caddy if there's a problem in config file (invalid syntax or failure to provision certificate)