File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -15,24 +15,12 @@ WEB_WP_DIR=/var/www/html
15
15
WEB_WP_URL=http://localhost:8080
16
16
17
17
# Call WP-CLI with appropriate site arguments via Docker
18
- #
19
- # docker compose run redirects the stderr of any invoked executables to
20
- # stdout. The only messages that will appear on stderr are issued by
21
- # docker compose run itself. This appears to be an undocumented "feature":
22
- # https://docs.docker.com/engine/reference/commandline/compose_run/
23
- #
24
- # The "2>/dev/null" below silences the messages from docker compose run.
25
- # For example, the output like the following will not be visible:
26
- # [+] Creating 2/0
27
- # ✔ Container cc-wordpress-db Running 0.0s
28
- # ✔ Container cc-web Running 0.0s
29
- docker compose run --rm \
18
+ docker compose exec \
30
19
--env WP_ADMIN_USER=" ${WP_ADMIN_USER} " \
31
20
--env WP_ADMIN_PASS=" ${WP_ADMIN_PASS} " \
32
21
--env WP_ADMIN_EMAIL=" ${WP_ADMIN_EMAIL} " \
33
22
index-wpcli \
34
23
/usr/local/bin/wp \
35
24
--path=" ${WEB_WP_DIR} " \
36
25
--url=" ${WEB_WP_URL} " \
37
- " ${@ } " \
38
- 2> /dev/null
26
+ " ${@ } "
You can’t perform that action at this time.
0 commit comments