Env follow up (#231)

* Create the env file only if not empty

* Update

* Check some fs operation to async
This commit is contained in:
Louis Lam
2023-12-04 18:40:37 +08:00
committed by GitHub
parent 0df3fee3f4
commit 793a9de50d
6 changed files with 48 additions and 15 deletions

View File

@@ -32,6 +32,8 @@ import User from "./models/user";
import childProcessAsync from "promisify-child-process";
import { Terminal } from "./terminal";
import "dotenv/config";
export class DockgeServer {
app : Express;
httpServer : http.Server;