TugboatQA / docs

Tugboat Docs
https://docs.tugboat.qa
MIT License
9 stars 18 forks source link

Update Wordpress tutorial #355

Closed KeyboardCowboy closed 12 months ago

KeyboardCowboy commented 1 year ago

Update the tutorial and the starter config file.

sean-e-dietrich commented 1 year ago

One other thing I forgot to mention is that we aren't including wp-config.php files in our tugboat directory we are doing something like the following

- wp --allow-root config create --dbname="tugboat" --dbuser="tugboat" --dbpass="tugboat" --dbhost="mysql" --dbprefix="${WORDPRESS_DB_PREFIX:-wp_}"

That way we don't have to maintain multiple files in a project for simple wp-config.php examples.

KeyboardCowboy commented 1 year ago

One other thing I forgot to mention is that we aren't including wp-config.php files in our tugboat directory we are doing something like the following

- wp --allow-root config create --dbname="tugboat" --dbuser="tugboat" --dbpass="tugboat" --dbhost="mysql" --dbprefix="${WORDPRESS_DB_PREFIX:-wp_}"

That way we don't have to maintain multiple files in a project for simple wp-config.php examples.

We had something like this in our config file previously, but in the past I've found that there are often unique settings that we want to include in local or Tugboat environments, so having them stored in a separate file made it easier to customize each environment. At least we'd do this frequently in Drupal sites. If Wordpress will work by setting those things using the command line tool, that does indeed simplify things. I was aiming for flexibility but maybe that's not needed.