Skip to content

Commit

Permalink
devops: entrypoint.sh fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
kidunot89 committed May 14, 2024
1 parent d9e6d96 commit d8d4be3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ cd "${WP_ROOT_FOLDER}" || exit
set +u

# Ensure mysql is loaded
wait-for-it -s -t 300 "${TEST_SITE_DB_HOST}:${DB_PORT:-3306}" -- echo "Application database is operationally..."
wait-for-it -s -t 300 "${WORDPRESS_DB_HOST}:${WORDPRESS_DB_PORT:-3306}" -- echo "Application database is operationally..."

# Install WP if not yet installed
echo "Installing WordPress..."
Expand Down Expand Up @@ -43,8 +43,8 @@ echo TEST_SITE_ADMIN_APP_PASSWORD="$(echo -n "${app_user}:${app_password}" | bas

echo "Dumping app database..."
wp db export "${PROJECT_DIR}/tests/codeception/_data/dump.sql" \
--dbuser="${TEST_SITE_DB_USER}" \
--dbpass="${TEST_SITE_DB_PASSWORD}" \
--dbuser="${WORDPRESS_DB_USER}" \
--dbpass="${WORDPRESS_DB_PASSWORD}" \
--skip-plugins \
--skip-themes \
--allow-root
Expand Down

0 comments on commit d8d4be3

Please sign in to comment.