Skip to content

Commit

Permalink
Merge pull request #16527 from geoand/#16524
Browse files Browse the repository at this point in the history
Ensure that Vert.x runs in its dev-mode when Quarkus is started in dev-mode
  • Loading branch information
geoand authored Apr 15, 2021
2 parents c9bf583 + 36f76f5 commit dbed19f
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ public class VertxHttpHotReplacementSetup implements HotReplacementSetup {

@Override
public void setupHotDeployment(HotReplacementContext context) {
// ensure that Vert.x runs in dev mode, this prevents Vert.x from caching static resources
System.setProperty("vertxweb.environment", "dev");
this.hotReplacementContext = context;
VertxHttpRecorder.setHotReplacement(this::handleHotReplacementRequest, hotReplacementContext);
hotReplacementContext.addPreScanStep(new Runnable() {
Expand Down

0 comments on commit dbed19f

Please sign in to comment.