summaryrefslogtreecommitdiff
path: root/Omni/Deploy/Deployer.hs
diff options
context:
space:
mode:
authorBen Sima <ben@bensima.com>2025-12-25 21:51:43 -0500
committerBen Sima <ben@bensima.com>2025-12-25 21:51:43 -0500
commitabdace209323b65f6c5db1bf553ede1f60da00cc (patch)
treefd253f652d0e77838e9196ee9890cef94547bcdb /Omni/Deploy/Deployer.hs
parent5e9cb8c4983f6cdd05568029e9c233202d01c9bf (diff)
Omni/Deploy: add WorkingDirectory support and rename to deployer
- 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 <noreply@anthropic.com>
Diffstat (limited to 'Omni/Deploy/Deployer.hs')
-rw-r--r--Omni/Deploy/Deployer.hs16
1 files changed, 8 insertions, 8 deletions
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 [<interval>]
- biz-deployer status
- biz-deployer (-h | --help)
+ deployer test
+ deployer once
+ deployer daemon [<interval>]
+ deployer status
+ deployer (-h | --help)
Commands:
test Run tests