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