Updates
This commit is contained in:
17
README.md
17
README.md
@@ -22,9 +22,8 @@ Wiaas implementation based on wordpress [woocommerce](https://woocommerce.com/)
|
||||
* `MYSQL_DATABASE` - Wordpress database name
|
||||
* `MYSQL_USER` - Wordpress database user
|
||||
* `MYSQL_PASSWORD` - Wordpress database password
|
||||
* `MYSQL_HOST` - Wordpress database host (will be `db` for docker)
|
||||
* `WP_ENV` - Set to environment (`local`, `development`, `production`)
|
||||
* `API_URL` - Full URL to WordPress home (http://localhost:8081 if you are testing locally)
|
||||
* `WP_ENV` - Set to environment (`development`, `staging`, `production`)
|
||||
* `WP_AUTH_KEY`, `WP_SECURE_AUTH_KEY`, `WP_LOGGED_IN_KEY`, `WP_NONCE_KEY`, `WP_AUTH_SALT`, `WP_SECURE_AUTH_SALT`, `WP_LOGGED_IN_SALT`, `WP_NONCE_SALT`, `WP_JWT_AUTH_SECRET_KEY`
|
||||
|
||||
3) Execute in the root of the project :
|
||||
@@ -53,14 +52,16 @@ Frontend is running on http://localhost:8080 and backend on http://localhost:808
|
||||
|
||||
1) Environment variables
|
||||
|
||||
For handling environment variables during local development we use [dotenv](https://github.com/vlucas/phpdotenv) library which will load all variables from `local.env` file
|
||||
if such file is present. These variables will then be accessible inside wordpress.
|
||||
|
||||
cp environment.env local.env
|
||||
For handling wordpress environment variables during local development we use [dotenv](https://github.com/vlucas/phpdotenv) library
|
||||
which enables loading variables from `.env` file.
|
||||
|
||||
If you wish to keep your docker and development setup different then generate `development.env` file which will then
|
||||
be loaded by dotenv insted of default `.env` file.
|
||||
|
||||
cp environment.env development.env
|
||||
|
||||
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).
|
||||
Update `development.env` with your local environment variables overrides.
|
||||
|
||||
2) Apache
|
||||
|
||||
|
||||
Reference in New Issue
Block a user