You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
331 B
13 lines
331 B
const DevSidercar = require('.')
|
|
require('json5/lib/register')
|
|
const config = require('../../config/index.json5')
|
|
// 启动服务
|
|
DevSidercar.api.startup(config)
|
|
async function onClose () {
|
|
console.log('on sigint ')
|
|
await DevSidercar.api.shutdown()
|
|
console.log('on closed ')
|
|
process.exit(0)
|
|
}
|
|
process.on('SIGINT', onClose)
|