Skip to content

Commit ea83b93

Browse files
committed
README + CHANGELOG Updates
1 parent 2efd193 commit ea83b93

2 files changed

Lines changed: 32 additions & 33 deletions

File tree

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22

33
This project adheres to [Semantic Versioning](http://semver.org/).
44

5+
### 1.3.2: 20/10/2023
6+
* Maintanence mode commands to prevent the site being accessed during sync
7+
* ENV Optimisations (merci @gmutschler)
8+
* Custom uploads folder directory support (thanks @paintface)
9+
* Composer stable stability + updated WP-CLI packages
10+
* New folder structure ✨
11+
512
### 1.3.1: 03/11/2020
613

714
* Added welcome and connection success messages

README.md

Lines changed: 25 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,31 @@
1-
<h1 align="center">
2-
<a href="https://github.com/jonbp/wp-cli-sync"><img alt="WP-CLI Sync" src="https://jonbp.github.io/project-icons/wp-cli-sync.svg" width="64" height="64"></a><br />WP-CLI Sync
3-
</h1>
1+
# WP-CLI Sync<a href="https://github.com/jonbp/wp-cli-sync"><img alt="WP-CLI Sync" src="https://jonbp.github.io/project-icons/wp-cli-sync.svg" width="40" height="40" align="right"></a>
42

5-
<p align="center">
6-
<a href="https://packagist.org/packages/jonbp/wp-cli-sync">
7-
<img alt="Packagist Latest Version" src="https://img.shields.io/packagist/v/jonbp/wp-cli-sync" />
8-
</a>
3+
[![Packagist Latest Version](https://img.shields.io/packagist/v/jonbp/wp-cli-sync)](https://packagist.org/packages/jonbp/wp-cli-sync)
4+
[![Packagist Downloads](https://img.shields.io/packagist/dm/jonbp/wp-cli-sync)](https://packagist.org/packages/jonbp/wp-cli-sync)
5+
[![GitHub Open Issues](https://img.shields.io/github/issues-raw/jonbp/wp-cli-sync)](https://github.com/jonbp/wp-cli-sync/issues)
6+
[![GitHub Open Pull Requests](https://img.shields.io/github/issues-pr-raw/jonbp/wp-cli-sync)](https://github.com/jonbp/wp-cli-sync/pulls)
97

10-
<a href="https://packagist.org/packages/jonbp/wp-cli-sync">
11-
<img alt="Packagist Downloads" src="https://img.shields.io/packagist/dm/jonbp/wp-cli-sync" />
12-
</a>
8+
## About
139

14-
<a href="https://github.com/jonbp/wp-cli-sync/issues">
15-
<img alt="GitHub Open Issues" src="https://img.shields.io/github/issues-raw/jonbp/wp-cli-sync" />
16-
</a>
10+
A WP-CLI command for syncing a live site to a development environment.
1711

18-
<a href="https://github.com/jonbp/wp-cli-sync/pulls">
19-
<img alt="GitHub Open Pull Requests" src="https://img.shields.io/github/issues-pr-raw/jonbp/wp-cli-sync" />
20-
</a>
21-
</p>
22-
23-
<p align="center">A WP-CLI command for syncing a live site to a development environment</p>
24-
25-
<p align="center">
26-
<img src="https://i.imgur.com/ugUhcuQ.gif" />
27-
</p>
12+
This plugin is designed to be used with a [Roots Bedrock](https://github.com/roots/bedrock) based WordPress project.
2813

14+
![Screenshot](https://i.imgur.com/ugUhcuQ.gif)
2915

3016
## Requirements
3117

18+
You will need the following to use this plugin:
19+
3220
* A [bedrock](https://github.com/roots/bedrock) based WordPress project
3321
* SSH connection to live server
3422
* [WP-CLI](https://github.com/wp-cli/wp-cli)
3523
* [rsync](https://rsync.samba.org)
3624

3725
## Installation
3826

27+
To install this plugin, follow these steps:
28+
3929
1. Require the plugin by running:
4030

4131
```sh
@@ -58,15 +48,6 @@ DEV_ACTIVATED_PLUGINS=""
5848

5949
# Plugins deactivated on sync
6050
DEV_DEACTIVATED_PLUGINS=""
61-
62-
# Dirs to exclude from sync
63-
# Multiple dirs can be provided by separating with a comma
64-
# Use dir names or paths relative to uploads dir
65-
DEV_SYNC_DIR_EXCLUDES=""
66-
67-
# DB Queries to run after sync
68-
DEV_POST_SYNC_QUERIES=""
69-
7051
```
7152

7253
3. Run `wp sync` from the project root.
@@ -82,4 +63,15 @@ wp db create
8263
wp core install --url=abc.xyz --title=abc --admin_user=abc --admin_password=abc --admin_email=abc@abc.xyz --skip-email
8364
```
8465

85-
It’s not necessary to edit the variables on the second line as the database is overwritten by the plugin during sync. The code is simply to give the plugin the requirements it needs to run without the real database installed.
66+
It’s not necessary to edit the variables on the second line as the database is overwritten by the plugin during sync. The code is simply to give the plugin the requirements it needs to run without the real database installed.
67+
68+
## Extra Environment Variables
69+
70+
Below is a list of extra environment variables that can be added to your `.env` file to customise the sync process.
71+
72+
| Variable | Description |
73+
| --- | --- |
74+
| `DEV_POST_SYNC_QUERIES` | A comma seperated list of SQL queries to run after the sync has completed. |
75+
| `DEV_SYNC_DIR_EXCLUDES` | A comma seperated list of directories within the uploads folder to exclude from the sync. |
76+
| `DEV_TASK_DEBUG` | Set to `true` to show debug information about the commands being run. Useful for debugging if something isn't working as expected. |
77+
| `UPLOAD_DIR` | The name of the uploads directory. Defaults to `app/uploads` where the uploads folder is located on a bedrock project. |

0 commit comments

Comments
 (0)