-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathwp-cli.sample.yml
50 lines (39 loc) · 1.72 KB
/
wp-cli.sample.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
url: local.example.com
path: docroot
color: auto
ssh:
staging:
# The %pseudotty% placeholder gets replaced with -t or -T depending on whether you're piping output
# The %cmd% placeholder is replaced with the originally-invoked WP-CLI command
cmd: ssh %pseudotty% util.example.com %cmd%
# Passed to WP-CLI on the remote server via --url
url: staging.example.com
# We cd to this path on the remote server before running WP-CLI
path: /var/www/staging.example.com/current/docroot
# Temporary directory to install wp-cli.phar to when it's not available. Default is /tmp
tmp_directory: /tmp
# Use a custom php interpreter / wp-cli command on the remote server
wpcli_command: php ./vendor/bin/wp
# WP-CLI over SSH will stop if one of these are provided
disabled_commands:
- db drop
- db reset
- plugin install
- core multisite-convert
production:
# You can connect to a server by tunnelling through another
cmd: ssh %pseudotty% util.example.org ssh %pseudotty% prod-util.example.org %cmd%
url: www.example.com
path: /var/www/staging.example.com/current/docroot
disabled_commands:
- db drop
- db reset
- plugin install
- core multisite-convert
# The keys here are supplied to `wp` via the --ssh-host argument
vagrant:
# Note the following command is needed because passing the -t/-T (%pseudotty%)
# argument doesn't seem to be recognized by vagrant: vagrant ssh -c %cmd% -- %pseudotty%
cmd: vagrant ssh-config > /tmp/vagrant_ssh_config && ssh -q %pseudotty% -F /tmp/vagrant_ssh_config default %cmd%
# Location on the vagrant machine where this WordPress install is located
path: /srv/www/example.com/docroot