mirror of
https://git.sindominio.net/estibadores/wordpress.git
synced 2024-11-23 19:11:06 +01:00
Use port 12001 for test
This commit is contained in:
parent
9df74c95fa
commit
5cff6cdb90
@ -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
4
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" == "" ]]
|
||||
|
Loading…
Reference in New Issue
Block a user