Skip to content

Commit

Permalink
feat: change served files on file change
Browse files Browse the repository at this point in the history
Signed-off-by: WoodenMaiden <yann.pomie@laposte.net>
  • Loading branch information
WoodenMaiden committed Jun 3, 2024
1 parent d19e12c commit 535dbc6
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion agrold-javaweb/.vscode.template/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"maven.terminal.favorites": [
{
"command": "package docker:start",
"command": "package docker:start fizzed-watcher:run",
"debug": false,
"alias": "Run in container"
}
Expand Down
2 changes: 1 addition & 1 deletion agrold-javaweb/nbactions.template.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
<packaging>ejb</packaging>
</packagings>
<goals>
<goal>package</goal>
<goal>docker:start</goal>
<goal>fizzed-watcher:run</goal>
</goals>
</action>
</actions>
21 changes: 17 additions & 4 deletions agrold-javaweb/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,6 @@
</dependency>
</dependencies>



<build>
<plugins>
<plugin>
Expand Down Expand Up @@ -201,12 +199,12 @@
</env>
<volumes>
<bind>
<volume>${project.basedir}/target/${agrold.name}:/opt/bitnami/tomcat/webapps_default/${agrold.name}</volume>
<volume>${project.basedir}/target/${agrold.name}:/app/${agrold.name}</volume>
</bind>
</volumes>
<log>
<enabled>true</enabled>
<prefix>Agrold @ %a &gt;&#160;</prefix>
<prefix>Agrold @ %c &gt;&#160;</prefix>
<date>NONE</date>
<color>CYAN</color>
</log>
Expand All @@ -215,6 +213,21 @@
</images>
</configuration>
</plugin>
<plugin>
<groupId>com.fizzed</groupId>
<artifactId>fizzed-watcher-maven-plugin</artifactId>
<version>1.0.6</version>
<configuration>
<watches>
<watch>
<directory>${project.basedir}/src/main</directory>
</watch>
</watches>
<goals>
<goal>package</goal>
</goals>
</configuration>
</plugin>
</plugins>
<finalName>${agrold.name}</finalName>
</build>
Expand Down

0 comments on commit 535dbc6

Please sign in to comment.