congregate
Version:
Node.js cluster on top of Flatiron CLI & Native cluster. Built with love!
18 lines (15 loc) • 440 B
JavaScript
var flatiron = require('flatiron'),
path = require('path'),
app = flatiron.app;
app.config.file({ file: path.join(__dirname, 'config', 'config.json') });
app.use(flatiron.plugins.cli, {
version: true,
source: path.join(__dirname, 'lib', 'commands'),
usage: [
"Application clustering of your node.js as shards!",
'',
'Usage: congregate <command>'
]
});
module.exports = app;
// app.start();