Browse Source

correct DBHOST substitution in config.json

Damien Solimando 8 years ago
parent
commit
8b44a78755
2 changed files with 3 additions and 1 deletions
  1. 1 1
      frameworks/Groovy/hot/config.json
  2. 2 0
      frameworks/Groovy/hot/setup.sh

+ 1 - 1
frameworks/Groovy/hot/config.json

@@ -5,7 +5,7 @@
   "dataSources" : [ {
     "name" : "mongo",
     "engine" : "MONGODB",
-    "hostname" : "$DBHOST",
+    "hostname" : "localhost",
     "port" : 27017,
     "database" : "hello_world",
     "username" : "",

+ 2 - 0
frameworks/Groovy/hot/setup.sh

@@ -1,5 +1,7 @@
 #!/bin/bash
 
+sed -i 's|localhost|'"${DBHOST}"'|g' config.json
+
 fw_depends java hot
 
 ${HOT_HOME}/hot run