yuck
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user