mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Update startup scripts (see below)
1. Set NODE_ENV to production and skip dev dependencies when running from scripts. 2. Remove pkg leftovers. Indicate current environment instead.
This commit is contained in:
@ -93,8 +93,8 @@ const cliArguments = yargs(hideBin(process.argv))
|
||||
}).parseSync();
|
||||
|
||||
// change all relative paths
|
||||
const serverDirectory = process['pkg'] ? path.dirname(process.execPath) : __dirname;
|
||||
console.log(process['pkg'] ? 'Running from binary' : 'Running from source');
|
||||
console.log(`Running in ${process.env.NODE_ENV} environment`);
|
||||
const serverDirectory = __dirname;
|
||||
process.chdir(serverDirectory);
|
||||
|
||||
const app = express();
|
||||
|
Reference in New Issue
Block a user