smarter caddy

This commit is contained in:
2025-11-29 21:01:14 -05:00
parent da07ee2f40
commit 9aee30f0d1
7 changed files with 36 additions and 17 deletions

View File

@@ -2,6 +2,8 @@ import hash from "object-hash";
import { $ } from "bun";
import path from "path";
import { config, indexedConfig } from "./config";
import fs from "fs";
import { reloadCaddyfile } from "./caddy";
type DeployInstance = {
host: string;
@@ -31,6 +33,7 @@ export const deploy = async ({ host, commitHash }: DeployInstance) => {
// Build
await $`make build`;
reloadCaddyfile();
// Register service
const systemdServiceName = `deployer2-${host}.service`;