aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/http
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-06-29 16:43:50 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2015-06-29 16:43:50 +1200
commita8c29ae1508ef9b099860938b2b6911691cba567 (patch)
tree6b9ea77ddcc799814a059a39af48e880751383d3 /src/org/traccar/http
parente9d300e00f244a56246809a3edace996286f1e19 (diff)
downloadtrackermap-server-a8c29ae1508ef9b099860938b2b6911691cba567.tar.gz
trackermap-server-a8c29ae1508ef9b099860938b2b6911691cba567.tar.bz2
trackermap-server-a8c29ae1508ef9b099860938b2b6911691cba567.zip
Add debug and release web versions
Diffstat (limited to 'src/org/traccar/http')
-rw-r--r--src/org/traccar/http/WebServer.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/http/WebServer.java b/src/org/traccar/http/WebServer.java
index 9030e992b..21a7ba775 100644
--- a/src/org/traccar/http/WebServer.java
+++ b/src/org/traccar/http/WebServer.java
@@ -66,7 +66,11 @@ public class WebServer {
ResourceHandler resourceHandler = new ResourceHandler();
resourceHandler.setResourceBase(properties.getProperty("web.path"));
- resourceHandler.setWelcomeFiles(new String[]{"index.html"});
+ if (Boolean.valueOf(properties.getProperty("web.debug"))) {
+ resourceHandler.setWelcomeFiles(new String[]{"debug.html"});
+ } else {
+ resourceHandler.setWelcomeFiles(new String[]{"release.html"});
+ }
HandlerList handlerList = new HandlerList();
handlerList.setHandlers(new Handler[] {servletHandler, resourceHandler});