Skip to content

Commit 2529bd1

Browse files
committed
update staff_migrate script
1 parent bcb2b42 commit 2529bd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

staff_migrate.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ trap '_es=${?};
1515
printf " exited with a status of ${_es}\n";
1616
exit ${_es}' ERR
1717

18-
DOCKER_WP_DIR=/var/www/html
18+
DOCKER_WP_DIR=/var/www/index
1919
DOCKER_WP_URL=http://localhost:8080
2020
# https://en.wikipedia.org/wiki/ANSI_escape_code
2121
E0="$(printf "\e[0m")" # reset
@@ -348,7 +348,7 @@ script_setup() {
348348
error_exit 'docker daemon is not running'
349349
fi
350350
# Ensure services are running
351-
for _service in index-web index-wpdb
351+
for _service in index-web index-db
352352
do
353353
if ! docker compose exec "${_service}" true 2>/dev/null
354354
then
@@ -525,7 +525,7 @@ wpcli() {
525525
case "${SCRIPT_ENV}" in
526526
'docker')
527527
# Call WP-CLI with appropriate site arguments via Docker
528-
docker compose exec index-wpcli \
528+
docker compose exec index-web \
529529
/usr/local/bin/wp \
530530
--path="${DOCKER_WP_DIR}" \
531531
--url="${DOCKER_WP_URL}" \

0 commit comments

Comments
 (0)