From 6cea6c920b1222421c8f7fe4fa63b047e5cc8d67 Mon Sep 17 00:00:00 2001 From: Cris Stringfellow <22254235+crislin2046@users.noreply.github.com> Date: Sun, 23 Jul 2023 10:19:34 +0800 Subject: [PATCH] 3.0.xx new version with fixes --- global-run.cjs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/global-run.cjs b/global-run.cjs index 6efce02..710cc0e 100755 --- a/global-run.cjs +++ b/global-run.cjs @@ -1,6 +1,7 @@ #!/usr/bin/env node const os = require('os'); +const path = require('path'); const { spawn } = require('child_process'); // Checking if node_modules directory exists @@ -20,5 +21,5 @@ const memoryAllocation = Math.floor((totalMemory / (1024 * 1024)) * 0.8); // Con console.log(`Index can use up to: ${memoryAllocation}MB RAM`); // Running the application -spawn('node', [`--max-old-space-size=${memoryAllocation}`, 'build/diskernet.mjs'], { stdio: 'inherit' }); +spawn('node', [`--max-old-space-size=${memoryAllocation}`, path.resolve(__dirname, 'build', 'diskernet.mjs')], { stdio: 'inherit' });