Starts systemic systems within a domain
const Systemic = require('systemic')
const runner = require('systemic-domain-runner')
const system = new Systemic()
.add('config', { foo: 1, bar: 2 })
.add('app', require('./my-app'))
.dependsOn('config')
runner(system).start((err, components) => {
if (err) throw err
console.log('Started')
})
- Shutsdown the system on unhandled errors
- Uses system-service-runner as the underlying runner by default
runner(<system>, [<options>]).start(<cb>)
{
logger: console,
runner: require('systemic-service-runner')
}