Skip to content

Commit 877fd30

Browse files
authored
Merge branch 'main' into readme-conflict-resolution
2 parents 5e3a6f4 + 657090f commit 877fd30

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

README.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,17 @@ _NB: be sure to use the `--destination` flag if you're not in a working drupal e
2323

2424

2525
## Installation
26+
Depending on which version of Terminus you have installed, install the plugin by using one of the following commands. You can see which version of Terminus you're using by executing `terminus --version`.
2627

27-
`composer create-project --no-dev -d ~/.terminus/plugins aaronbauman/terminus-config-export`
28+
### Terminus 2
29+
```
30+
composer create-project --no-dev -d ~/.terminus/plugins aaronbauman/terminus-config-export
31+
```
2832

33+
### Terminus 3
34+
```
35+
terminus self:plugin:install aaronbauman/terminus-config-export
36+
```
2937

3038
## Under the hood
3139
### What happens when I run `cex`?

src/Commands/ConfigExportCommand.php

+4
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ public function configExportRemote($site_env, $options = ['destination' => '', '
6868
passthru($sftp['command'] . " << EOF
6969
mkdir files/private/{$remote_destination}
7070
bye
71+
EOF 2>/dev/null");
72+
passthru($sftp['command'] . " << EOF
73+
rm files/private/{$remote_destination}/*
74+
bye
7175
EOF 2>/dev/null");
7276
$this->log()->notice('Exporting remote config.');
7377
$this->executeCommand(['drush', 'cex', '--destination=private://' . $remote_destination]);

0 commit comments

Comments
 (0)