Renamed props app_mode => server_mode

This commit is contained in:
Marko Milić 2019-07-31 09:36:32 +02:00
parent 858c9af959
commit a10c2a78ca
4 changed files with 7 additions and 7 deletions

View File

@ -380,10 +380,10 @@ We use jetty8 to run the API in production mode.
* Edit your props file(s) to contain one of the next cases:
1) app_mode=portal
2) app_mode=backend
3) app_mode=multi
In case is not defined default case is the 3rd one i.e. app_mode=multi
1) server_mode=portal
2) server_mode=backend
3) server_mode=multi
In case is not defined default case is the 3rd one i.e. server_mode=multi
## Using Akka remote storage

View File

@ -637,5 +637,5 @@ database_messages_scheduler_interval=3600
# -- OBP-API mode -------------------------------
# In case isn't defined default value is "multi"
# Possible cases: portal, backend, multi
# app_mode=portal
# server_mode=portal
# -----------------------------------------------

View File

@ -374,7 +374,7 @@ class Boot extends MdcLoggable {
// Build SiteMap
val indexPage = APIUtil.getPropsValue("app_mode", "multi") match {
val indexPage = APIUtil.getPropsValue("server_mode", "multi") match {
case mode if mode == "portal" => List(Menu.i("Home") / "index")
case mode if mode == "backend" => List()
case _ => List(Menu.i("Home") / "index")

View File

@ -1622,7 +1622,7 @@ Returns a string showed to the developer
else
false
}
APIUtil.getPropsValue("app_mode", "multi") match {
APIUtil.getPropsValue("server_mode", "multi") match {
case mode if mode == "portal" => false
case mode if mode == "backend" => checkVersion
case _ => checkVersion