wp-cli
cannot connect to a MySQL database in GitHub Actions setup (but works on local machine)
#6003
Unanswered
vadimkantorov
asked this question in
How do I?
Replies: 1 comment
-
@danielbachhuber At filing time, I considered this issue as a bug report about GH Actions usage... Or was it looking like I'm doing sth wrong in the workflow script? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How to set up properly WordPress in a GitHub Actions env using
wp-cli
?(Usecase for context: I am exploring usage of WP as a static site generator runnable on GitHub Actions (similar to Jekyll: basically I'd like to have all WP settings and content in file system, then a WP install, then export static copy of the website). Setting it up is the first step. Some of my workable instructions for local runs are at https://github.com/vadimkantorov/wpssg )
Maybe somehow need to ask it to pass some analog of
-h 127.0.0.1
for connecting to MySQL, but how (theoreticallyDB_HOST
setting done inwp-config.php
by./wp-cli.phar config create
should be enough)?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions