Skip to content

Commit fe8db35

Browse files
No bin
1 parent 961b24b commit fe8db35

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

index.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { AppRunner } from "@solid/community-server";
2+
3+
// Attaching a logger to the uncaughtExceptionMonitor event,
4+
// such that the default uncaughtException behavior still occurs.
5+
process.on('uncaughtExceptionMonitor', (err, origin) => {
6+
// eslint-disable-next-line no-console
7+
console.error(`Process is halting due to an ${origin} with error ${err.message}`);
8+
});
9+
10+
// eslint-disable-next-line no-sync
11+
new AppRunner().runCliSync(process);

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
"version": "0.0.1",
44
"description": "Run the Community Solid Server in an Azure App Service",
55
"repository": "[email protected]:matthieubosquet/css-azure-app-service.git",
6-
"main": "./dist/index.js",
7-
"types": "./dist/index.d.ts",
6+
"main": "./index.js",
87
"scripts": {
9-
"start": "community-solid-server --config config.json --baseUrl \"https://csstestnode-dhf6hxapfcbrdxem.uksouth-01.azurewebsites.net/\" --rootFilePath /csstest --mainModulePath . --loggingLevel info --port $PORT",
10-
"start:dev": "community-solid-server --config config.json --rootFilePath data/ --mainModulePath . --loggingLevel info --port 8080"
8+
"start": "node . --config config.json --baseUrl \"https://csstestnode-dhf6hxapfcbrdxem.uksouth-01.azurewebsites.net/\" --rootFilePath /csstest --mainModulePath . --loggingLevel info --port $PORT",
9+
"start:dev": "node . --config config.json --rootFilePath data/ --mainModulePath . --loggingLevel info --port 8080"
1110
},
1211
"files": [
1312
"config.json"

0 commit comments

Comments
 (0)