# Dev server commands. Run `just --list` from this directory. # Terraform must be initialized (`just init`) before ssh or ip will resolve. default: @just --list # Droplet IPv4 from terraform output. ip: @cd terraform && terraform output -raw droplet_ipv4 # terraform init init: cd terraform && terraform init # terraform plan plan: init cd terraform && terraform plan # terraform apply apply: init cd terraform && terraform apply # ssh into the host as devict ssh: ssh devict@$(just ip) # 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