Update PostgreSQL database URI in test.sh

This commit is contained in:
Théophile Diot 2024-01-23 11:10:02 +01:00
parent 8c3ec6b24c
commit dcba7dc181
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -312,7 +312,7 @@ do
elif [ "$test" = "postgres" ] ; then
echo "💾 Running tests with PostgreSQL database ..."
echo " Keeping the MULTISITE variable to yes and multisite settings ..."
find . -type f -name 'docker-compose.*' -exec sed -i 's@DATABASE_URI: ".*"$@DATABASE_URI: "postgresql://bunkerweb:secret\@bw-db:5432/db"@' {} \;
find . -type f -name 'docker-compose.*' -exec sed -i 's@DATABASE_URI: ".*"$@DATABASE_URI: "postgresql+psycopg://bunkerweb:secret\@bw-db:5432/db"@' {} \;
echo "💾 Starting postgres ..."
docker compose -f docker-compose.postgres.yml up -d