Environment settings¶
In this step all Panda environment variables will be set.
Hint: Copy the provided .env.example file to .env, and adjust as needed.
This file will be respected by both WP-CLI Dotenv and docker-compose.
- Development stages
- Development
- Staging
-
Production
-
Database settings
DB_NAME– Database nameDB_USER– Database userDB_PASSWORD– Database passwordDB_HOST– Database hostDB_PREFIX– Database prefix
Optionally, you can define DATABASE_URL for using a DSN instead of using the variables above
e.g. mysql://user:password@db_host:3306/db_name
It might be a good idea to not just generate passwords (64 characters recommended), but also the names of DBs and DB users, e.g.
DB_NAME=panda-quaep7daiZai
DB_USER=panda-es0oopeiDohM
- Web settings
WP_ENV- Set to environment (development,staging,production)WP_HOME- Full URL to WordPress home (https://example.com)-
WP_SITEURL- Full URL to WordPress including subdirectory (https://example.com/wp) -
Secret keys
Generate or regenerate keys and values for authentication salts in the .env file with wp-cli-dotenv-command, or with this online salts generator. Should the site be down, try this or that.
AUTH_KEY– Secret key for login cookiesSECURE_AUTH_KEY– Secret key for authorization cookiesLOGGED_IN_KEY– Secret key for non-SSL authorization cookiesNONCE_KEY– Secret key for intrusion preventionAUTH_SALT– Salt key for login cookiesSECURE_AUTH_SALT– Salt key for authorization cookiesLOGGED_IN_SALT– Salt key for non-SSL authorization cookies-
NONCE_SALT– Salt key for intrusion preventionDetails can be found in this article.
-
Website customization
WP_TITLE– Every good story needs a good nameWP_ADMIN_USER– Not calling superuser accountsadminoradministratoris recommendedWP_ADMIN_PASSWORD– Every good admin needs a good passwordWP_ADMIN_EMAIL– Setting an email address for the primary admin account is optional