Skip to content

Commit aaadabe

Browse files
committed
Update Service Script
1 parent f012469 commit aaadabe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

services

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ case "${command}" in
101101
"help")
102102
echo "usage: services [create|start|stop]"
103103
;;
104-
"start")
104+
"start")
105+
export $(cat .env | grep "#" -v)
105106
stoppingContainers
106107
echo -e "Starting five containers \033[1;34mOrion\033[0m, \033[1;36mIoT-Agent\033[0m, \033[1mTutorial\033[0m, \033[1mMosquitto\033[0m MQTT broker and a \033[1mMongoDB\033[0m database."
107108
echo -e "- \033[1;34mOrion\033[0m is the context broker"
@@ -118,9 +119,11 @@ case "${command}" in
118119
echo -e "Now open \033[4mhttp://localhost:3000/device/monitor\033[0m"
119120
;;
120121
"stop")
122+
export $(cat .env | grep "#" -v)
121123
stoppingContainers
122124
;;
123125
"create")
126+
export $(cat .env | grep "#" -v)
124127
echo "Pulling Docker images"
125128
docker-compose --log-level ERROR -p fiware pull
126129
;;

0 commit comments

Comments
 (0)