|
1 | 1 | # Dev environment WordPress with Docker _**TIPS**_ |
2 | 2 |
|
3 | 3 |
|
4 | | -#### This docker compose was made to have a modern WP dev environment which can be portable, easy to set up and focused on the use of `wp-cli`. |
| 4 | +#### This docker compose was made to have a modern WP dev environment which can be portable, easy to set up and focused on the use of `wp`. |
5 | 5 |
|
6 | 6 | > With `docker-compose up` it will run a phpmyadmin service, this is created with goal of facilitate the management of the DataBase (not all of us are command ninja) so we recommend, stop it when you are not using it. |
7 | 7 | > `docker-compose stop wp_phpmyadmin` |
8 | 8 |
|
| 9 | +## Start everything |
| 10 | + |
| 11 | +For be able to manipulate easily the files of wordpress you need to: |
| 12 | + |
| 13 | +`export UID && docker-compose up` |
| 14 | + |
9 | 15 | ## Steps to begin with a new WP project |
10 | 16 |
|
11 | 17 | 1. Create the user using phpmyadmin |
12 | 18 | - Set as `Host name` **=** `Use text field`= `wp_server` |
13 | | -2. Download the WordPress core using `docker exec wp_server wp-cli core download` |
14 | | -3. Create your `wp-config` file `docker exec -ti wp_server wp-cli core config --prompt` |
| 19 | +2. Download the WordPress core using `docker exec wp_server wp core download` |
| 20 | +3. Create your `wp-config` file `docker exec -ti wp_server wp core config --prompt` |
15 | 21 | - 1/12 --dbname=<**dbname**>: `YOUR_DB_NAME` |
16 | 22 | - 2/12 --dbuser=<**dbuser**>: `USER_CREATED_AT_1` |
17 | 23 | - 3/12 [--dbpass=<**dbpass**>]: `PASS_CREATED_AT_1` |
18 | 24 | - 4/12 [--dbhost=<**dbhost**>]: `wp_mariadb` |
19 | 25 | - 5...12 - Default values set by enter |
20 | | -4. Create db `docker exec -ti wp_server wp-cli db create` |
21 | | -5. Install WordPress site `docker exec -ti wp_server wp-cli core install --prompt` |
| 26 | +4. Create db `docker exec -ti wp_server wp db create` |
| 27 | +5. Install WordPress site `docker exec -ti wp_server wp core install --prompt` |
22 | 28 | - 1/6 --url=<**url**>: `localhost` |
23 | 29 | - 2...6 - Your personal configuration |
24 | 30 |
|
|
0 commit comments