Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / vendor / drush / drush / examples / example.site.yml
1 #
2 # Example of valid statements for an alias file.
3
4 # Basic Alias File Usage
5 #
6 # In its most basic form, the Drush site alias feature provides a way
7 # for teams to share short names that refer to the live and staging sites
8 # (usually remote) for a given Drupal site.
9 #
10 # 1. Make a local working clone of your Drupal site and then
11 #    `cd` to the project work to select it.
12 # 2. Add an alias file called $PROJECT/drush/sites/self.site.yml,
13 #    where $PROJECT is the project root (location of composer.json file).
14 # 3. Run remote commands against the shared live or stage sites
15 #
16 # Following these steps, a cache:rebuild on the live environment would be:
17 #
18 #   $ drush @live cache:rebuild
19 #
20 # The site alias file should be named `self.site.yml` because this name is
21 # special, and is used to define the different environments (usually remote)
22 # of the current Drupal site.
23 #
24 # The contents of the alias file should look something like the example below:
25 #
26 # @code
27 # # File: self.site.yml
28 # live:
29 #   host: server.domain.com
30 #   user: www-admin
31 #   root: /other/path/to/live/drupal
32 #   uri: http://example.com
33 # stage:
34 #   host: server.domain.com
35 #   user: www-admin
36 #   root: /other/path/to/stage/drupal
37 #   uri: http://stage.example.com
38 # @endcode
39 #
40 # The top-level element names (`live` and `stage` in the example above) are
41 # used to identify the different environments available for this site. These
42 # may be used on the command line to select a different target environment
43 # to operate on by prepending an `@` character, e.g. `@live` or `@stage`.
44 #
45 # All of the available aliases for a site's environments may be listed via:
46 #
47 #   $ drush site:alias @self
48 #
49 # The elements of a site alias environment are:
50 #
51 # - 'host': The fully-qualified domain name of the remote system
52 #   hosting the Drupal instance. **Important Note: The remote-host option
53 #   must be omitted for local sites, as this option controls various
54 #   operations, such as whether or not rsync parameters are for local or
55 #   remote machines, and so on.
56 # - 'user': The username to log in as when using ssh or rsync.
57 # - 'root': The Drupal root; must not be specified as a relative path.
58 # - 'uri': The value of --uri should always be the same as
59 #   when the site is being accessed from a web browser (e.g. http://example.com)
60 #
61 # Drush uses ssh to run commands on remote systems; all team members should
62 # install ssh keys on the target servers (e.g. via ssh-add).
63
64 # Advanced Site Alias File Usage
65 #
66 # It is also possible to create site alias files that reference other
67 # sites on the same local system. Site alias files for other local sites
68 # are usually stored in the directory `~/.drush/sites`; however, Drush does
69 # not search this location for alias files by default. To use this location,
70 # you must add the path in your Drush configuration file. For example,
71 # to re-add both of the default user alias path from Drush 8, put the following
72 # in your ~/.drush/drush.yml configuration file:
73 #
74 # @code
75 # drush:
76 #   paths:
77 #     alias-path:
78 #       - '${env.home}/.drush/sites'
79 #       - /etc/drush/sites
80 # @endcode
81 #
82 # The command `drush core:init` will automatically configure your
83 # ~/.drush/drush.yml configuration file to add `~/.drush/sites` and
84 # `/etc/drush/sites` as locations where alias files may be placed.
85 #
86 # A canonical alias named "example" that points to a local
87 # Drupal site named "http://example.com" looks like this:
88 #
89 # @code
90 # File: example.site.yml
91 # dev:
92 #   root: /path/to/drupal
93 #   uri: http://example.com
94 # @endcode
95 #
96 # Note that the first part of the filename (in this case "example")
97 # defines the name of the site alias, and the top-level key ("dev")
98 # defines the name of the environment.
99 #
100 # With these definitions in place, it is possible to run commands targeting
101 # the dev environment of the target site via:
102 #
103 #   $ drush @example.dev status
104 #
105 # This command is equivalent to the longer form:
106 #
107 #   $ drush --root=/path/to/drupal --uri=http://example.com status
108 #
109 # See "Additional Site Alias Options" below for more information.
110
111 # Converting Legacy Alias Files
112 #
113 # To convert legacy alias (*.aliases.drushrc.php) to yml, run the
114 # site:alias-convert command.
115
116 # Altering aliases:
117 #
118 # See examples/Commands/SiteAliasAlterCommands.php for an example.
119
120 # Environment variables:
121 #
122 # It is no longer possible to set environment variables from within an alias.
123 # This is a planned feature.
124
125 # Additional Site Alias Options
126 #
127 # Aliases are commonly used to define short names for
128 # local or remote Drupal installations; however, an alias
129 # is really nothing more than a collection of options.
130 #
131 # - 'os': The operating system of the remote server.  Valid values
132 #   are 'Windows' and 'Linux'. Be sure to set this value for all remote
133 #   aliases because the default value is PHP_OS if 'remote-host'
134 #   is not set, and 'Linux' (or $options['remote-os']) if it is. Therefore,
135 #   if you set a 'remote-host' value, and your remote OS is Windows, if you
136 #   do not set the 'OS' value, it will default to 'Linux' and could cause
137 #   unintended consequences, particularly when running 'drush sql-sync'.
138 # - 'ssh': Contains settings used to control how ssh commands are generated
139 #   when running remote commands.
140 #   - 'options': Contains additional commandline options for the ssh command
141 #   itself, e.g. "-p 100"
142 #   - 'tty': Usually, Drush will decide whether or not to create a tty (via
143 #   the ssh '--t' option) based on whether the local Drush command is running
144 #   interactively or not. To force Drush to always or never create a tty,
145 #   set the 'ssh.tty' option to 'true' or 'false', respectively.
146 # - 'paths': An array of aliases for common rsync targets.
147 #   Relative aliases are always taken from the Drupal root.
148 #   - 'files': Path to 'files' directory.  This will be looked up if not
149 #     specified.
150 #   - 'drush-script': Path to the remote Drush command.
151 # - 'command': These options will only be set if the alias
152 #   is used with the specified command.  In the example below, the option
153 #   `--no-dump` will be selected whenever the @stage alias
154 #   is used in any of the following ways:
155 #     - `drush @stage sql-sync @self @live`
156 #     - `drush sql-sync @stage @live`
157 #     - `drush sql-sync @live @stage`
158 #   NOTE: Setting boolean options broke with Symfony 3. This will be fixed
159 #     in a future release. See: https://github.com/drush-ops/drush/issues/2956
160 #
161 # Complex example:
162 #
163 # @code
164 # # File: remote.site.yml
165 # live:
166 #   host: server.domain.com
167 #   user: www-admin
168 #   root: /other/path/to/drupal
169 #   uri: http://example.com
170 #   ssh:
171 #     options: '-p 100'
172 #   paths:
173 #     drush-script: '/path/to/drush'
174 #   command:
175 #     site:
176 #       install:
177 #         options:
178 #           admin-password: 'secret-secret'
179 # @endcode
180
181 # Site Alias Files for Service Providers
182 #
183 # There are a number of service providers that manage Drupal sites as a
184 # service. Drush allows service providers to create collections of site alias
185 # files to reference all of the sites available to a single user. In order
186 # to so this, a new location must be defined in your Drush configuration
187 # file:
188 #
189 # @code
190 # drush:
191 #   paths:
192 #     alias-path:
193 #       - '${env.home}/.drush/sites/provider-name'
194 # @endcode
195 #
196 # Site aliases stored in this directory may then be referenced by its
197 # full alias name, including its location, e.g.:
198 #
199 #   $ drush @provider-name.example.dev
200 #
201 # Such alias files may still be referenced by their shorter name, e.g.
202 # `@example.dev`. Note that it is necessary to individually list every
203 # location where site alias files may be stored; Drush never does recursive
204 # (deep) directory searches for alias files.
205 #
206 # The `site:alias` command may also be used to list all of the sites and
207 # environments in a given location, e.g.:
208 #
209 #   $ drush site:alias @provider-name
210 #
211 # Add the option `--format=list` to show only the names of each site and
212 # environment without also showing the values in each alias record.
213
214 # Developer Information
215 #
216 # See https://github.com/consolidation/site-alias for more developer
217 # information about Site Aliases.
218 #
219 # An example appears below. Edit to suit and remove the @code / @endcode and
220 # leading hashes to enable.
221 #
222 # @code
223 # # File: mysite.site.yml
224 # stage:
225 #   uri: http://stage.example.com
226 #   root: /path/to/remote/drupal/root
227 #   host: mystagingserver.myisp.com
228 #   user: publisher
229 #   os: Linux
230 #   paths:
231 #    - files: sites/mydrupalsite.com/files
232 #    - custom: /my/custom/path
233 #   command:
234 #     sql:
235 #       sync:
236 #         options:
237 #           no-dump: true
238 # dev:
239 #   root: /path/to/docroot
240 #   uri: https://dev.example.com
241 # @endcode
242