From abdace209323b65f6c5db1bf553ede1f60da00cc Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Thu, 25 Dec 2025 21:51:43 -0500 Subject: Omni/Deploy: add WorkingDirectory support and rename to deployer MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add execWorkingDirectory field to Exec type in Manifest.hs - Generate WorkingDirectory= in systemd unit files - Allow add-service to update existing services - Rename biz-deployer to deployer throughout - Fix Caddy.hs and Systemd.hs tests for new Exec constructor This fixes subagent stalls caused by Coder running direnv from wrong directory. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- Omni/Deploy/Deployer.hs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'Omni/Deploy/Deployer.hs') diff --git a/Omni/Deploy/Deployer.hs b/Omni/Deploy/Deployer.hs index 7e57b34..bfeb1a9 100644 --- a/Omni/Deploy/Deployer.hs +++ b/Omni/Deploy/Deployer.hs @@ -12,7 +12,7 @@ -- Polls manifest from S3, compares to local state, pulls changed closures, -- generates systemd units, updates Caddy routes, and manages GC roots. -- --- : out biz-deployer +-- : out deployer -- : dep aeson -- : dep amazonka -- : dep amazonka-core @@ -61,7 +61,7 @@ import System.FilePath (()) import qualified System.Process as Process stateDir :: FilePath -stateDir = "/var/lib/biz-deployer" +stateDir = "/var/lib/deployer" stateFile :: FilePath stateFile = stateDir "state.json" @@ -243,14 +243,14 @@ runDaemon intervalSeconds = do help :: Cli.Docopt help = [Cli.docopt| -biz-deployer - Mini-PaaS deployment agent +deployer - Mini-PaaS deployment agent Usage: - biz-deployer test - biz-deployer once - biz-deployer daemon [] - biz-deployer status - biz-deployer (-h | --help) + deployer test + deployer once + deployer daemon [] + deployer status + deployer (-h | --help) Commands: test Run tests -- cgit v1.2.3