|
|
|
@ -1,9 +1,9 @@
|
|
|
|
|
import config from '../config'
|
|
|
|
|
import app from './app'
|
|
|
|
|
const start = () => {
|
|
|
|
|
// https://github.com/node-modules/graceful
|
|
|
|
|
const graceful = require('graceful')
|
|
|
|
|
const now = () => new Date().toISOString().replace(/T/, ' ').replace(/Z/, '')
|
|
|
|
|
const app = require('./app')
|
|
|
|
|
const { serve: { port } } = config
|
|
|
|
|
const server = app.listen(port, () => {
|
|
|
|
|
console.log(`[${now()}] worker#${process.pid} rap2-dolores is running as ${port}`)
|
|
|
|
|