Skip to content

Commit

Permalink
Re-use the hot deployment handler, in case of failed server start, to…
Browse files Browse the repository at this point in the history
… allow for hot deploying any fixes that caused the server start failure
  • Loading branch information
jaikiran committed Oct 28, 2019
1 parent 76335ec commit 0771078
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,12 @@ public static void startServerAfterFailedStart() {
if (closeTask != null) {
//it is possible start failed after the server was started
//we shut it down in this case, as we have no idea what state it is in
final Handler<RoutingContext> prevHotReplacementHandler = hotReplacementHandler;
shutDownDevMode();
// reset back to the older hot replacement handler, so that it can be used
// to watch any artifacts that need hot deployment to fix the reason which caused
// the server start to fail
hotReplacementHandler = prevHotReplacementHandler;
}
VertxConfiguration vertxConfiguration = new VertxConfiguration();
ConfigInstantiator.handleObject(vertxConfiguration);
Expand Down

0 comments on commit 0771078

Please sign in to comment.