Commit 20688661 authored by Ryan Herbert's avatar Ryan Herbert Committed by Mathieu Giraud

Add server identifier in conf.js

See #2927
parent d084f99f
......@@ -307,6 +307,7 @@
<div id="menu_right_part">
<div id="server-id" class="menu"></div>
<div id="fps" style="display: none"> </div>
<div id="header_messages" class="message_container header"></div>
......
......@@ -45,6 +45,9 @@ Model_loader.prototype = {
if (typeof config != 'undefined' && typeof config.autoload_analysis != 'undefined')
params.analysis = config.autoload_analysis
if (typeof config != 'undefined' && typeof config.server_id != 'undefined')
document.getElementById('server-id').innerText = config.server_id
/** load the default vidjil file, open the database or display the welcome popup depending on the case*/
if (typeof params.data !== "undefined") {
if (typeof params.analysis !== "undefined"){
......
......@@ -731,6 +731,8 @@ Now we need to configure the database connection parameters:
```
This tells the browser to access the server on the current domain.
You may also add a variable called `server_id` in order to name different
instances and environments; it will be displayed in the top menu.
- copy vidjil/server/web2py/applications/vidjil/modules/defs.py.sample
to vidjil/server/web2py/applications/vidjil/modules/defs.py
......
......@@ -16,6 +16,7 @@ var config = {
*/
/* 1) Patient database */
"server_id" : "",
"use_database" : true,
"db_address" : "https://localhost/vidjil/", // Public test server
"login" : "",
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment