From b81dc319e25b9fd1b384084c89f2f8b9933293bb Mon Sep 17 00:00:00 2001 From: Phil Kunz Date: Thu, 11 Apr 2019 01:42:48 +0200 Subject: [PATCH] fix(core): update --- ts/smartnginx.classes.smartnginx.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ts/smartnginx.classes.smartnginx.ts b/ts/smartnginx.classes.smartnginx.ts index 7a317db..afdfe93 100644 --- a/ts/smartnginx.classes.smartnginx.ts +++ b/ts/smartnginx.classes.smartnginx.ts @@ -119,11 +119,11 @@ export class SmartNginx { // write standard self signed certificate const selfsignedCert = plugins.selfsigned.generate([{ name: 'commonName', value: 'selfsigned.git.zone' }], { days: 365}); + + // deploy hosts + plugins.smartfile.fs.ensureDirSync(paths.nginxHostDirPath); plugins.smartfile.memory.toFsSync(selfsignedCert.private, plugins.path.join(paths.nginxHostDirPath, './default.private.pem')); plugins.smartfile.memory.toFsSync(selfsignedCert.public, plugins.path.join(paths.nginxHostDirPath, './default.public.pem')); - - // deploy hosts - plugins.smartfile.fs.ensureEmptyDirSync(paths.nginxHostDirPath); for (const host of this.deployedHosts.getArray()) { await host.deploy(); this.logger.log('info', `Host ${host.hostName} deployed!`);