Skip to content

Commit

Permalink
add intl, update wp-config
Browse files Browse the repository at this point in the history
  • Loading branch information
yuriipavlov committed Dec 20, 2023
1 parent 8bd6257 commit e530c73
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 5 additions & 5 deletions app/web/wp-config.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* This file contains the following configurations:
*
* * MySQL settings
* * Database settings
* * Secret keys
* * Database table prefix
* * ABSPATH
Expand Down Expand Up @@ -46,14 +46,14 @@ function getenv_docker($env, $default)
}
}

// ** MySQL settings - You can get this info from your web host ** //
// ** Database settings - You can get this info from your web host ** //
/** The name of the database for WordPress */
define('DB_NAME', getenv_docker('MYSQL_DATABASE', 'wordpress'));

/** MySQL database username */
/** Database database username */
define('DB_USER', getenv_docker('MYSQL_USER', 'example_username'));

/** MySQL database password */
/** Database database password */
define('DB_PASSWORD', getenv_docker('MYSQL_PASSWORD', 'example_password'));

/**
Expand All @@ -62,7 +62,7 @@ function getenv_docker($env, $default)
* (However, using "example username" and "example password" in your database is strongly discouraged. Please use strong, random credentials!)
*/

/** MySQL hostname */
/** Database hostname */
define('DB_HOST', getenv_docker('MYSQL_HOST', 'database'));

/**
Expand Down
3 changes: 2 additions & 1 deletion docker/wordpress/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ RUN set -eux; \
bcmath \
exif \
gd \
intl \
mysqli \
zip \
; \
Expand Down Expand Up @@ -125,7 +126,7 @@ RUN set -eux; \
echo 'opcache.max_accelerated_files=4000'; \
echo 'opcache.revalidate_freq=2'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini; \
# https://wordpress.org/support/article/editing-wp-config-php/#configure-error-logging
# https://wordpress.org/documentation/article/editing-wp-config-php/#configure-error-logging
{ \
# https://www.php.net/manual/en/errorfunc.constants.php
# https://github.com/docker-library/wordpress/issues/420#issuecomment-517839670
Expand Down

0 comments on commit e530c73

Please sign in to comment.