Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
'use strict';
const Nodal = require('nodal');
const cluster = require('cluster');
if (cluster.isMaster) {
const daemon = new Nodal.Daemon();
daemon.start(Nodal.my.Config.secrets.port);
} else {
const app = new Nodal.Application();
app.listen(Nodal.my.Config.secrets.port);
}
module.exports = (function() {
'use strict';
const Nodal = require('nodal');
let daemon = new Nodal.Daemon('./app/app.js');
daemon.start(function(app) {
app.listen(Nodal.my.Config.secrets.port);
});
})();
'use strict';
const Nodal = require('nodal');
module.exports = new Nodal.Daemon();