Skip to content

Commit d0c5765

Browse files
committed
Updating readme
1 parent 3acbf54 commit d0c5765

File tree

1 file changed

+8
-31
lines changed

1 file changed

+8
-31
lines changed

README.md

+8-31
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Dev environment WordPress with Docker _**TIPS**_
1+
# Dev environment WordPress with Docker _**TIPS**_
22

33

44
#### 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`.
@@ -17,23 +17,23 @@ For be able to manipulate easily the files of wordpress you need to:
1717
1. Create the user using phpmyadmin
1818
- allow conection from any host
1919
- create a database with the same name with all priviledges
20-
2. Download the WordPress core using
21-
- `docker exec wp_server wp core download`
22-
3. Create your `wp-config` file
23-
- `docker exec -ti wp_server wp core config --prompt`
20+
2. Download the WordPress core using
21+
- `docker-compose exec wp_server wp core download`
22+
3. Create your `wp-config` file
23+
- `docker-compose exec wp_server wp core config --prompt`
2424
- 1/12 --dbname=<**dbname**>: `YOUR_DB_NAME`
2525
- 2/12 --dbuser=<**dbuser**>: `USER_CREATED_AT_1`
2626
- 3/12 [--dbpass=<**dbpass**>]: `PASS_CREATED_AT_1`
2727
- 4/12 [--dbhost=<**dbhost**>]: `wp_mariadb`
2828
- 5...12 - Default values set by enter
29-
4. Install WordPress site
30-
- `docker exec -ti wp_server wp core install --prompt`
29+
4. Install WordPress site
30+
- `docker-compose exec wp_server wp core install --prompt`
3131
- 1/6 --url=<**url**>: `localhost`
3232
- 2...6 - Your personal configuration
3333

3434
## Changing the PHP version
3535

36-
1. stop everything with
36+
1. stop everything with
3737
- `docker-compose stop`
3838

3939
2. On the `docker-compose.yml` file, on service `wp_server` on the section `args` leave uncommented the php version that you want
@@ -51,27 +51,4 @@ For be able to manipulate easily the files of wordpress you need to:
5151
5. To verify the version run
5252
- `docker exec wp_server php --version`
5353

54-
------------------
55-
56-
## DB useful commands
57-
### Log into
58-
`docker exec -ti wp_mariadb mysql -h localhost -u root -pPASSWORD`
59-
60-
### Create db
61-
`docker exec -ti wp_mariadb mysql -h localhost -u root -pPASSWORD`
62-
63-
```
64-
Welcome to the MariaDB monitor. Commands end with ; or \g.
65-
Your MariaDB connection id is 19
66-
Server version: 10.2.7-MariaDB-10.2.7+maria~jessie mariadb.org binary distribution
67-
68-
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
69-
70-
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
71-
72-
MariaDB [(none)]> CREATE DATABASE test CHARACTER SET utf8 COLLATE utf8_bin;
73-
74-
MariaDB [(none)]> SHOW DATABASES;
75-
```
76-
7754
> Written with [StackEdit](https://stackedit.io/).

0 commit comments

Comments
 (0)