File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 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 ) ;
Original file line number Diff line number Diff line change 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"
You can’t perform that action at this time.
0 commit comments