Skip to content

Commit

Permalink
Stop/destroy the connector and context
Browse files Browse the repository at this point in the history
  • Loading branch information
earldouglas committed Sep 27, 2024
1 parent 7b3a874 commit 069e6f1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,13 @@ object WebappComponentsRunner {
override def start(): Unit = tomcat.start()
override def join(): Unit = tomcat.getServer().await()
override def stop(): Unit = {

connector.stop()
context.stop()
tomcat.stop()

connector.destroy()
context.destroy()
tomcat.destroy()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ object WebappComponentsRunnerPlugin extends AutoPlugin {
val runner: WebappComponentsRunner =
WebappComponentsRunner(
hostname = "localhost", // TODO this could be a settingKey
contextPath = "", // TODO this could be a settingKey
port = webappPort.value,
contextPath = "", // TODO this could be a settingKey
emptyWebappDir = emptyDir,
emptyClassesDir = emptyDir,
resourceMap = WebappComponentsPlugin.webappContents.value
Expand Down

0 comments on commit 069e6f1

Please sign in to comment.