This commit is contained in:
Louis Lam
2023-11-29 18:50:00 +08:00
parent a0fca4df4d
commit 8cd9f46335
3 changed files with 89 additions and 4 deletions

View File

@@ -150,9 +150,6 @@ export class DockgeServer {
}
}
// Create all the necessary directories
this.initDataDir();
// Create express
this.app = express();
@@ -255,6 +252,9 @@ export class DockgeServer {
*
*/
async serve() {
// Create all the necessary directories
this.initDataDir();
// Connect to database
try {
await Database.init(this);