What is it?
A development server instance that automatically:
- Configures server to read web content directly from source directory instead of build target directory.
- Includes dependencies required to run CDI 1.2 automatically
How to use the happy dev-server
The server is used via CLI and configured via XML.
Deploy a Hi app to the server
happy -deploy
Configuration XML file
Filename : happy.xml
<?xml version="1.0" enconding="utf-8"?>
<happy>
<port>8080</port>
<context>/app</context>
<webapp path="src/main/webapp">
<web-inf>
<classes>target/classes</classes>
<lib>
<!--
<resolve-dependencies>MAVEN</resolve-dependencies>
<resolve-dependencies>GRADLE</resolve-dependencies>-->
<directory>target/Example-SNAPSHOT-1.0.0/WB-INF/lib</directory>
</lib>
</web-inf>
</webapp>
</happy>
Create configuration using the default profile
happy -init
Create configuration using a maven profile
happy -init maven
Create configuration using a gradle profile
happy -init gradle
How does it work?
It runs an embedded tomcat7 server in the backgound.
Github repository to fork:
Relevant links