diff options
Diffstat (limited to 'bundle')
-rw-r--r-- | bundle/package.json | 2 | ||||
-rw-r--r-- | bundle/src/Database.ts | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/bundle/package.json b/bundle/package.json index 1e6c95c5..38377d15 100644 --- a/bundle/package.json +++ b/bundle/package.json @@ -4,7 +4,7 @@ "description": "", "main": "src/start.js", "scripts": { - "postinstall": "cd ../util && npm i && cd ../api && npm i && cd ../cdn && npm i && cd ../gateway && npm i", + "preinstall": "cd ../util && npm i && cd ../api && npm i && cd ../cdn && npm i && cd ../gateway && npm i", "build": "npm run build:api && npm run build:cdn && npm run build:gateway && npm run build:bundle", "build:bundle": "npx tsc -b .", "build:api": "cd ../api/ && npm run build", diff --git a/bundle/src/Database.ts b/bundle/src/Database.ts index 7351290a..12febc1c 100644 --- a/bundle/src/Database.ts +++ b/bundle/src/Database.ts @@ -10,6 +10,7 @@ if (process.arch == "ia32") { } export async function setupDatabase() { + if (process.env.MONGO_URL) return; // exit because the user provides his own mongodb const dbPath = path.join(__dirname, "..", "..", "db"); const dbName = "fosscord"; const storageEngine = "wiredTiger"; |