From d3110033e6d00a13c40538cee7dda71f4612ed7b Mon Sep 17 00:00:00 2001
From: Mirco Nasuti <mirco.nasuti@chuv.ch>
Date: Mon, 8 Feb 2016 09:42:49 +0100
Subject: [PATCH] removed hard coded IP

---
 src/main/resources/static/frontend/Gruntfile.js               | 4 ++--
 .../resources/static/frontend/app/scripts/app/app.config.js   | 4 ++--
 .../static/frontend/app/scripts/app/hbpapps/hbpapps.html      | 2 +-
 .../resources/static/frontend/app/scripts/app/home/home.html  | 2 +-
 .../static/frontend/app/scripts/app/models/model.html         | 2 +-
 .../static/frontend/app/scripts/app/profile/profile.html      | 2 +-
 6 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/main/resources/static/frontend/Gruntfile.js b/src/main/resources/static/frontend/Gruntfile.js
index 4c64287c5..30004316f 100644
--- a/src/main/resources/static/frontend/Gruntfile.js
+++ b/src/main/resources/static/frontend/Gruntfile.js
@@ -90,7 +90,7 @@ module.exports = function (grunt) {
       options: {
         port: 9002,
         // Change this to '0.0.0.0' to access the server from outside.
-        hostname: '155.105.202.24',
+        hostname: '155.105.202.25',
         livereload: 35730
       },
       livereload: {
@@ -333,7 +333,7 @@ module.exports = function (grunt) {
           },
           dev: {
               constants: {
-                  backendUrl: 'http://155.105.202.24:8080',
+                  backendUrl: 'http://155.105.202.25:8080',
                   backendExportChartUrl: '<%= ngconstant.dev.constants.backendUrl %>/exportingChart.php',
                   dropboxAppkey: '7wew0rj0gh2qcik'
               }
diff --git a/src/main/resources/static/frontend/app/scripts/app/app.config.js b/src/main/resources/static/frontend/app/scripts/app/app.config.js
index 6a2ff8f23..c8e8fc70f 100644
--- a/src/main/resources/static/frontend/app/scripts/app/app.config.js
+++ b/src/main/resources/static/frontend/app/scripts/app/app.config.js
@@ -1,8 +1,8 @@
 angular.module('app.config', [])
 
-.constant('backendUrl', 'http://155.105.202.24:8080')
+.constant('backendUrl', 'http://155.105.202.25:8080')
 
-.constant('backendExportChartUrl', 'http://155.105.202.24:8080/exportingChart.php')
+.constant('backendExportChartUrl', 'http://155.105.202.25:8080/exportingChart.php')
 
 .constant('dropboxAppkey', '7wew0rj0gh2qcik')
 
diff --git a/src/main/resources/static/frontend/app/scripts/app/hbpapps/hbpapps.html b/src/main/resources/static/frontend/app/scripts/app/hbpapps/hbpapps.html
index 4a436c60f..5d7857bfd 100644
--- a/src/main/resources/static/frontend/app/scripts/app/hbpapps/hbpapps.html
+++ b/src/main/resources/static/frontend/app/scripts/app/hbpapps/hbpapps.html
@@ -1,6 +1,6 @@
 <div id="accessDeniedPage" ng-show="!isLoggedIn()">
   <h1>Are you lost ?</h1>
-  <p>Click  <a href="http://155.105.202.24:8080/frontend/app/index.html#/login">here</a> </p>
+  <p>Click  <a ng-href="{{backendUrl}}/frontend/app/index.html#/login">here</a> </p>
 </div>
 
 <div class="container-fluid mt" ng-show="isLoggedIn()">
diff --git a/src/main/resources/static/frontend/app/scripts/app/home/home.html b/src/main/resources/static/frontend/app/scripts/app/home/home.html
index dbddd8615..e57b09cf4 100644
--- a/src/main/resources/static/frontend/app/scripts/app/home/home.html
+++ b/src/main/resources/static/frontend/app/scripts/app/home/home.html
@@ -1,6 +1,6 @@
 <div id="accessDeniedPage" ng-show="!isLoggedIn()">
   <h1>Are you lost ?</h1>
-  <p>Click  <a href="http://155.105.202.24:8080/frontend/app/index.html#/login">here</a> </p>
+  <p>Click  <a ng-href="{{backendUrl}}/frontend/app/index.html#/login">here</a> </p>
 </div>
 
 <div class="container-fluid intro-container" ng-show="isNewVisitor() && isLoggedIn()">
diff --git a/src/main/resources/static/frontend/app/scripts/app/models/model.html b/src/main/resources/static/frontend/app/scripts/app/models/model.html
index 805d40b63..4c03a2079 100644
--- a/src/main/resources/static/frontend/app/scripts/app/models/model.html
+++ b/src/main/resources/static/frontend/app/scripts/app/models/model.html
@@ -1,6 +1,6 @@
 <div id="accessDeniedPage" ng-show="!isLoggedIn()">
   <h1>Are you lost ?</h1>
-  <p>Click  <a href="http://155.105.202.24:8080/frontend/app/index.html#/login">here</a> </p>
+  <p>Click  <a ng-href="{{backendUrl}}/frontend/app/index.html#/login">here</a> </p>
 </div>
 
 <div ng-show="isLoggedIn()">
diff --git a/src/main/resources/static/frontend/app/scripts/app/profile/profile.html b/src/main/resources/static/frontend/app/scripts/app/profile/profile.html
index 30406e402..2deacdb78 100644
--- a/src/main/resources/static/frontend/app/scripts/app/profile/profile.html
+++ b/src/main/resources/static/frontend/app/scripts/app/profile/profile.html
@@ -1,6 +1,6 @@
 <div id="accessDeniedPage" ng-show="!isLoggedIn()">
   <h1>Are you lost ?</h1>
-  <p>Click  <a href="http://155.105.202.24:8080/frontend/app/index.html#/login">here</a> </p>
+  <p>Click  <a ng-href="{{backendUrl}}/frontend/app/index.html#/login">here</a> </p>
 </div>
 
 <div class="container-fluid mt" ng-show="isLoggedIn()">
-- 
GitLab