diff --git a/src/deploy.ts b/src/deploy.ts index 725fecc..6b9f539 100644 --- a/src/deploy.ts +++ b/src/deploy.ts @@ -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,