fix(core): Refactor filesystem usage to smartfs async provider, update dependencies, tests and nginx config paths
This commit is contained in:
@@ -53,10 +53,10 @@ export class NginxHost implements IHostConfig {
|
||||
this.destination,
|
||||
this.destinationPort
|
||||
);
|
||||
plugins.smartfile.memory.toFsSync(this.configString, filePathConfig);
|
||||
await plugins.fs.file(filePathConfig).write(this.configString);
|
||||
|
||||
// write ssl
|
||||
plugins.smartfile.memory.toFsSync(this.privateKey, filePathPrivate);
|
||||
plugins.smartfile.memory.toFsSync(this.publicKey, filePathPublic);
|
||||
await plugins.fs.file(filePathPrivate).write(this.privateKey);
|
||||
await plugins.fs.file(filePathPublic).write(this.publicKey);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user