Browse Source

Renaming host->URL

Jim Barritt 11 months ago
parent
commit
f4d71f8ef2
1 changed files with 4 additions and 4 deletions
  1. 4 4
      apps/petitions/decode-app/ops/local/mongo.sh

+ 4 - 4
apps/petitions/decode-app/ops/local/mongo.sh

@@ -13,7 +13,7 @@ source ${SCRIPT_HOME}/lib.sh
13 13
 DOCKER_COMPOSE_CONFIG=${SCRIPT_HOME}/mongo.docker-compose.yml
14 14
 
15 15
 # File-local config
16
-MONGO_HOST="http://localhost:27017"
16
+MONGO_URL="http://localhost:27017"
17 17
 
18 18
 DOCKER_COMMAND="docker-compose -f ${DOCKER_COMPOSE_CONFIG}"
19 19
 
@@ -22,10 +22,10 @@ function status {
22 22
     echo -e "Docker Config: \n${DOCKER_COMPOSE_CONFIG}\n"
23 23
     ${DOCKER_COMMAND} ps
24 24
 
25
-    HTTP_STATUS=$(lib/http_status_of ${MONGO_HOST})
25
+    HTTP_STATUS=$(lib/http_status_of ${MONGO_URL})
26 26
 
27 27
 
28
-    echo -e "\nStatus of mongo db @ ${MONGO_HOST}: ${HTTP_STATUS}\n"
28
+    echo -e "\nStatus of mongo db @ ${MONGO_URL}: ${HTTP_STATUS}\n"
29 29
 }
30 30
 
31 31
 function docker-logs {
@@ -50,7 +50,7 @@ function logs {
50 50
 function up {
51 51
     echo -e "\nStarting local docker container with mongo (run [${SCRIPT_HOME}/mongo.sh docker-logs] to see details)\n"
52 52
     ${DOCKER_COMMAND}  up -d
53
-    lib/wait_for_service $MONGO_HOST
53
+    lib/wait_for_service $MONGO_URL
54 54
     status
55 55
 }
56 56