This commit is contained in:
2025-11-29 23:54:05 -05:00
parent d3c94eac60
commit a4a277dce2

View File

@@ -16,7 +16,7 @@ export const deploy = async ({ host, commitHash }: DeployInstance) => {
console.log(`=== ${deploymentId} ===`);
console.log({ host, commitHash });
const deployerDir = await l$`pwd`.text().then((t) => t.trim());
const deployerDir = path.join(config.directory, "deployer2");
console.log(deployerDir);
const service = config.services[host];
@@ -45,6 +45,7 @@ export const deploy = async ({ host, commitHash }: DeployInstance) => {
const systemdServiceName = `deployer2-${host}.service`;
await l$`cat ${path.join(
deployerDir,
"src",
"service.template"
)} | envsubst > ${path.join(serviceDir, systemdServiceName)}`.env({
host,