Merge branch 'new-project-structure' of gitlab.com:saburly/wiaas/new-wiaas into new-project-structure
This commit is contained in:
@@ -59,6 +59,8 @@ if such file is present. These variables will then be accessible inside wordpres
|
|||||||
cp environment.env local.env
|
cp environment.env local.env
|
||||||
|
|
||||||
Update `local.env` with your local environment variables.
|
Update `local.env` with your local environment variables.
|
||||||
|
Remember to uncomment env variables needed for local wordpress development like WP_HOME and WP_DB_HOST.
|
||||||
|
(important: set WP_ENV to local only for local coding environment, since it will activate script debug, wordpress debug and save query options).
|
||||||
|
|
||||||
2) Apache
|
2) Apache
|
||||||
|
|
||||||
@@ -119,9 +121,11 @@ Project structure is inspired with [Roots Bedrock structure](https://roots.io/be
|
|||||||
|
|
||||||
|
|
||||||
This approach enables:
|
This approach enables:
|
||||||
- Better folder structure (wordpress core is in separate folder and is treated as dependency)
|
- Better folder structure
|
||||||
|
- wordpress core is in separate folder and is treated as dependency
|
||||||
|
- separate environment config file for non sensitive wordpress config (ex: SCRIPT_DEBUG, DISALLOW_FILE_MODS)
|
||||||
|
- dedicated plugin folder for dev team under version control management (wiaas)
|
||||||
- Dependency management with Composer (wordpress core and plugins)
|
- Dependency management with Composer (wordpress core and plugins)
|
||||||
- Easy WordPress configuration with environment specific files
|
|
||||||
- Environment variables with [Dotenv](https://github.com/vlucas/phpdotenv)
|
- Environment variables with [Dotenv](https://github.com/vlucas/phpdotenv)
|
||||||
- Enhanced security (all sensitive information is accessed with environment variables)
|
- Enhanced security (all sensitive information is accessed with environment variables)
|
||||||
- Secure passwords with [wp-password-bcrypt](https://github.com/roots/wp-password-bcrypt)
|
- Secure passwords with [wp-password-bcrypt](https://github.com/roots/wp-password-bcrypt)
|
||||||
|
|||||||
@@ -8,9 +8,17 @@ MYSQL_PASSWORD=wp_password
|
|||||||
API_URL=url
|
API_URL=url
|
||||||
|
|
||||||
#Wordpress config
|
#Wordpress config
|
||||||
WP_ENV=development -- set this to local only for local wordpress development (it will activate script debug and query save)
|
|
||||||
WP_DB_HOST=localhost -- for local wordpress development only to override default db if needed
|
# Determines loading of enviroment specific non sensitive wordpress config file (/backend/config/environments/[WP_ENV].php)
|
||||||
WP_HOME=${API_URL} -- for local wordpress development since dotenv allows this kind of initialization
|
# Set this to local only for local wordpress development (it will activate WP_DEBUG, SCRIPT_DEBUG and SAVEQUERIES)
|
||||||
|
WP_ENV=development
|
||||||
|
|
||||||
|
# Required for local wordpress development only for quick override of default db if needed
|
||||||
|
#WP_DB_HOST=localhost
|
||||||
|
|
||||||
|
# Required for local wordpress development since dotenv allows this kind of initialization
|
||||||
|
# For docker deployment this is done inside docker container
|
||||||
|
#WP_HOME=${API_URL}
|
||||||
|
|
||||||
AUTH_KEY=generate_me
|
AUTH_KEY=generate_me
|
||||||
SECURE_AUTH_KEY=generate_me
|
SECURE_AUTH_KEY=generate_me
|
||||||
|
|||||||
Reference in New Issue
Block a user