From 5cff6cdb90e9b3861fcf209c232733386f6772dc Mon Sep 17 00:00:00 2001 From: meskio Date: Mon, 19 Dec 2022 20:20:22 +0100 Subject: [PATCH] Use port 12001 for test --- docker-compose.yml | 2 +- test | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 36259f8..fcc0821 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,7 +22,7 @@ services: volumes: - ./uploads:/app/wp-content/uploads ports: - - 8080:8080 + - 127.0.0.1:12001:8080 environment: - MYSQL_HOST=db - MYSQL_DATABASE diff --git a/test b/test index 733c3fe..df78727 100755 --- a/test +++ b/test @@ -18,7 +18,7 @@ docker-compose up -d # Wait for the web server to respond cont=0 echo -n "Espera al servidor web " -while ! curl -s localhost:8080 > /dev/null; do +while ! curl -s localhost:12001 > /dev/null; do echo -n "." cont=$((cont+1)) if [ "$cont" == 30 ]; then @@ -30,7 +30,7 @@ while ! curl -s localhost:8080 > /dev/null; do done echo " connectado" -STR=`curl -s localhost:8080 |grep "Hello world!"` +STR=`curl -s localhost:12001 |grep "Hello world!"` tear_down if [[ "$STR" == "" ]]