smarter caddy
This commit is contained in:
@@ -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`;
|
||||
|
||||
Reference in New Issue
Block a user