Skip to content

Commit

Permalink
fix: minor dev-admin and fastify plugin fix (#1644)
Browse files Browse the repository at this point in the history
  • Loading branch information
jchip authored May 19, 2020
1 parent f5fa782 commit 100c6b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions packages/xarc-app-dev/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
module.exports = {
require,
hapiPlugin: require("./lib/webpack-dev-hapi"),
fastifyPlugin: require("./lib/webpack-dev-fastify"),
expressMiddleware: require("./lib/webpack-dev-express"),
koaMiddleware: require("./lib/webpack-dev-koa")
};
5 changes: 2 additions & 3 deletions packages/xarc-app-dev/lib/dev-admin/admin-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,10 @@ ${proxyItem}<magenta>M</> - Show this menu <magenta>Q</> - Shutdown
handleServerExit(name) {
const info = this.getServer(name);
if (info._child) {
const { pid } = info._child;
info._child.once("exit", (code, signal) => {
const signalText = signal ? `- signal ${signal}` : "";
this._io.show(
ck`<orange>${name} (PID: ${info._child.pid}) exited code ${code} ${signalText}</orange>`
);
this._io.show(ck`<orange>${name} (PID: ${pid}) exited code ${code} ${signalText}</orange>`);
info._child = undefined;
info._starting = false;
this._webpackDevRelay.setAppServer(null);
Expand Down

0 comments on commit 100c6b1

Please sign in to comment.