You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
2. On the `docker-compose.yml` file, on service `wp_server` on the section `args` leave uncommented the php version that you want
@@ -53,25 +54,25 @@ For be able to manipulate easily the files of wordpress you need to:
53
54
54
55
------------------
55
56
56
-
## DB useful commands
57
-
### Log into
58
-
`docker exec -ti wp_mariadb mysql -h localhost -u root -pPASSWORD`
57
+
## Deploying your database
58
+
59
+
We recommend to have a repo for your WordPress site, so the themes and plugins should be deployed by a `git pull` command.
60
+
61
+
> By the moment we don't expose the wordmove entrypoint in the container so you need to login to container and execute the following commands
62
+
63
+
### Login in to the container
64
+
65
+
`docker-compose run --rm wp_wordmove /bin/bash`
59
66
60
-
### Create db
61
-
`docker exec -ti wp_mariadb mysql -h localhost -u root -pPASSWORD`
67
+
### Deploying `uploads` folder
62
68
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
69
+
`wordmove push --uploads`
67
70
68
-
Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.
71
+
### Deploying your database
69
72
70
-
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
73
+
`wordmove push --db`
71
74
72
-
MariaDB [(none)]> CREATE DATABASE test CHARACTER SET utf8 COLLATE utf8_bin;
75
+
> #### The database deploy will overwritte the database on the production site, each comment, post, subscriber that is not in your local database will be lost
73
76
74
-
MariaDB [(none)]> SHOW DATABASES;
75
-
```
76
77
77
78
> Written with [StackEdit](https://stackedit.io/).
0 commit comments