try to fix HUP config reset
This commit is contained in:
parent
f8a0ab6d3c
commit
f0b1846912
1 changed files with 2 additions and 2 deletions
|
|
@ -30,7 +30,7 @@ const packageJson = JSON.parse(fs.readFileSync(__dirname + '/../package.json', '
|
|||
const isLight = packageJson.name.slice(-6) === '-light';
|
||||
const serve_rendered = (await import(`${!isLight ? `./serve_rendered.js` : `./serve_light.js`}`)).serve_rendered;
|
||||
|
||||
export function server(opts) {
|
||||
function start(opts) {
|
||||
console.log('Starting server');
|
||||
|
||||
const app = express().disable('x-powered-by');
|
||||
|
|
@ -471,7 +471,7 @@ export function server(opts) {
|
|||
};
|
||||
}
|
||||
|
||||
export const exports = (opts) => {
|
||||
export function server(opts) {
|
||||
const running = start(opts);
|
||||
|
||||
running.startupPromise.catch((err) => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue