From 3151e0e6f436cf5731ee8a032f1bc6e3367391ff Mon Sep 17 00:00:00 2001 From: Neil Kuan Date: Tue, 3 Nov 2020 17:44:39 +0800 Subject: [PATCH] fix(cert): fix cert path not found --- src/cert-manager.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cert-manager.ts b/src/cert-manager.ts index 82cc74e..d9180ec 100644 --- a/src/cert-manager.ts +++ b/src/cert-manager.ts @@ -1,8 +1,9 @@ import * as fs from 'fs'; +import * as path from 'path'; import * as yaml from 'js-yaml'; export class CertManager { public static certManagerConfig(): any { - let certManagerConfigManifest = yaml.safeLoadAll(fs.readFileSync('../cert/cert-manager.yaml').toString()); + let certManagerConfigManifest = yaml.safeLoadAll(fs.readFileSync(path.join(__dirname, '../cert/cert-manager.yaml')).toString()); return certManagerConfigManifest; } } \ No newline at end of file