Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM semtech/mu-javascript-template:1.8.0
FROM semtech/mu-javascript-template:1.9.1
11 changes: 9 additions & 2 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,17 @@
import { app } from 'mu';
import services from './config/rules';
import { app, errorHandler, beforeExit, uuid } from 'mu';
import normalizeQuad from './config/normalize-quad';
import bodyParser from 'body-parser';
import dns from 'dns';
import { foldChangeSets } from './folding';
import { sendRequest } from './send-request';
import { sendBundledRequest } from './bundle-requests';

import services from './config/rules.js';

beforeExit( async () => {
console.log('Shutting down delta-notifier gracefully...');
});

// Log server config if requested
if( process.env["LOG_SERVER_CONFIGURATION"] )
console.log(JSON.stringify( services ));
Expand Down Expand Up @@ -139,3 +144,5 @@ async function getServiceIp(entry) {
} );
} );
};

app.use(errorHandler);
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"version": "0.4.0",
"description": "Sends notifications about changes to interested mu.semte.ch microservices",
"main": "app.js",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down