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
Copy file name to clipboardExpand all lines: README.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -93,17 +93,18 @@ Copy your MySQL database dumpfiles into before calling Calling `npm run start` w
93
93
Syncs data from a remote server to the local development environment. The bare command will run these sub-commands:
94
94
-**`pull:db`** - Syncs down the most recent mySQL dumpfile, backs up the current dev DB then reloads the DB
95
95
-**`pull:plugins`** - Syncs down **wp-content/plugins** from the remote
96
-
-**`pull:uploads`** - Syncs down **wp-content/uploads** from the remote
96
+
-**`pull:uploads <$YEAR>`** - Syncs down the current year's **wp-content/uploads/$YEAR** from the remote. Sync specific years with the optional year argument.
97
+
-**`pull:uploads-all`** - Syncs down the entire **wp-content/uploads** directory from the remote
97
98
-**`logs:wordpress`** - Stream the WordPress debug.log
98
99
-**`wp-cli`** - Runs [wp-cli](https://wp-cli.org/vc) commands. The default command re-activates the development theme.
99
100
100
101
### Pulling Data from Remote Servers
101
102
102
103
The `npm run pull` command brings together several sub-commands to sync remote data to the local development environment. Each command can also be called individually. Connection info needs to be configured in a **.env** file. Values are documented in the **.env.sample** file.
103
104
104
-
Private SSH keys are passed to the image as [Docker Secrets][], set `$SSH_KEY_PATH to a local keypath in **.env**.
105
+
Private SSH keys are passed to the image as [Docker Secrets][docker-secrets], point`$SSH_KEY_PATH` to a local private key in **.env**.
105
106
106
-
Pulling uploads, plugins and database dumps is currently supported on WP Engine.
107
+
Pulling uploads, plugins and database dumps is currently supported on WP Engine and Kinsta.
107
108
108
109
Connections must be configured on a per-machine basis using a `.env` file in the project root. For new projects, rename the `.env.example` to **.env** and update the settings.
_note: This no longer works for npm versions > v7. See [#29](https://github.com/ideasonpurpose/docker-wordpress-dev/issues/29)_
164
+
_note: This no longer works for npm versions >v6. See [#29](https://github.com/ideasonpurpose/docker-wordpress-dev/issues/29)_
164
165
165
166
Webpack devserver runs on port `8080` by default. Multiple projects can be run simultaneously by using `npm config` to assign different ports the the project's **package.json**`name`. For example, three projects named `csr-site`, `pro-bono` and `ar-project` could be run simultaneously on custom ports, after running these commands:
166
167
@@ -200,7 +201,7 @@ This project's Dockerfile is based on the official WordPress image. We add [Xdeb
200
201
All shell scripts in **bin** have been checked with [ShellCheck](https://www.shellcheck.net/) and formatted with [shfmt](https://github.com/mvdan/sh) via Docker:
0 commit comments