Closed KeyboardCowboy closed 12 months 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.
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.
Update the tutorial and the starter config file.