mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
11 lines
370 B
JavaScript
Executable File
11 lines
370 B
JavaScript
Executable File
#!/usr/bin/env node
|
|
const { AppRunner } = require('..');
|
|
|
|
// Attaching a logger to the uncaughtExceptionMonitor event,
|
|
// such that the default uncaughtException behavior still occurs.
|
|
process.on('uncaughtExceptionMonitor', (err, origin) => {
|
|
console.error(`Process is halting due to an ${origin} with error ${err.message}`);
|
|
});
|
|
|
|
new AppRunner().runCliSync(process);
|