Use port 12001 for test

This commit is contained in:
meskio 2022-12-19 20:20:22 +01:00
parent 9df74c95fa
commit 5cff6cdb90
No known key found for this signature in database
GPG Key ID: 52B8F5AC97A2DA86
2 changed files with 3 additions and 3 deletions

View File

@ -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

4
test
View File

@ -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" == "" ]]