index.js 386 Bytes
process.chdir(__dirname);

const fs = require('fs');
fs.writeFileSync('pid.txt', process.pid.toString());

const apiserver = require('komodo-sdk/api-server');
const pullgw = require('komodo-sdk/gateway/pull');
const partner = require('./lib/partner');
const adviceServer = require('komodo-sdk/gateway/advice-push-server');

pullgw.setPartner(partner);
adviceServer.setPartner(partner);