Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 2af85a0

Browse files
author
Martin Wahnschaffe
authored
Merge pull request SORMAS-Foundation#3301 from ImisDevelopers/feature-2183-vaadin-productionmode
[IMIS] SORMAS-Foundation#2183 Disable VAADIN debug mode
2 parents 402d5ab + 7b0ea5c commit 2af85a0

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

SERVER_DEV_SETUP.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22

33
# Installing a SORMAS Server for development
4-
**Note: This guide explains how to configure a SORMAS server on Linux and Windows systems for development. Please note that there is no database setup because the script supposes the use of the Docker Postgresql image (see [SORMAS-Docker][https://github.com/hzi-braunschweig/SORMAS-Docker]).**
4+
**Note: This guide explains how to configure a SORMAS server on Linux and Windows systems for development. Please note that there is no database setup because the script supposes the use of the Docker Postgresql image (see [SORMAS-Docker](https://github.com/hzi-braunschweig/SORMAS-Docker)).**
55

66
## Content
77
* [Prerequisites](#prerequisites)
@@ -50,6 +50,10 @@ See [Keycloak](SERVER_SETUP.md#keycloak-server) for how to install Docker locall
5050

5151
If you are doing active development on Keycloak (themes, authentication mechanisms, translations, etc.) it's recommended to install the standalone variant.
5252

53+
## VAADIN Debug Mode
54+
55+
To enable [VAADIN Debug Mode](https://vaadin.com/docs/v8/framework/advanced/advanced-debug.html), go to ``sormas-ui/src/main/webapp/WEB-INF/web.xml`` and set ``productionMode`` to ``false``.
56+
Make sure not to commit your changes to these files, for example by using .gitignore. To access the debug Window, got to <url>/sormas-ui/?debug. You may need to log in as admin once first.
5357

5458
## Other components
5559

sormas-ui/src/main/webapp/WEB-INF/web.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
version="3.1">
77

88
<display-name>SORMAS Web Interface</display-name>
9+
<context-param>
10+
<description>Vaadin Production Mode</description>
11+
<param-name>productionMode</param-name>
12+
<param-value>true</param-value>
13+
</context-param>
914

1015
<security-role>
1116
<role-name>USER</role-name>

0 commit comments

Comments
 (0)