# Dev server commands. Run `just --list` from this directory. # OpenTofu state lives in DigitalOcean Spaces; backend credentials and TF_VARs # come from 1Password via `.env.local.op`, so `just tf` runs through `op run`. set positional-arguments default: @just --list # tofu with args, e.g. `just tf plan`, `just tf output -raw droplet_ipv4` tf *args: @op run --env-file=.env.local.op -- tofu -chdir=terraform "$@" # ssh into the host as devict ssh: ssh devict@$(just tf output -raw droplet_ipv4) # full ansible setup (all roles) setup: cd ansible && ansible-playbook site.yaml # pull latest events image + restart the service deploy-events: cd ansible && ansible-playbook deploy-svc-events.yaml # pull latest bot image + restart the service deploy-bot: cd ansible && ansible-playbook deploy-svc-bot.yaml # pull latest caddy image + restart the service deploy-caddy: cd ansible && ansible-playbook deploy-svc-caddy.yaml