Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shared settings between environments #88

Open
clemorphy opened this issue Nov 29, 2015 · 1 comment
Open

Shared settings between environments #88

clemorphy opened this issue Nov 29, 2015 · 1 comment

Comments

@clemorphy
Copy link

Is there a way to define shared settings that will be used by several environments ?
If the paths in the exclude list are the same for all my environments, and if this list is quite long, it may be useful to define it one time for all environments.

Is there currently a way of doing this ?

@clemorphy clemorphy changed the title Shared settings between environment Shared settings between environments Nov 29, 2015
@polikin
Copy link

polikin commented Feb 22, 2018

You can create an anchor like this:

exclude:
  path: &path [".DS_Store", "aaaa", "bbbb", "node_modules", "cccc", "dddd", "package.json"]

dev:
    scheme: ftp
    host: ftp.xxxx.com
    port: 21
    user: xxx
    pass: xxx
    slots: 6
    path:
        local: /
        remote: public_html/xxxx
    exclude: *path

Anchor names must not contain the [, ], {, } and , characters.

*An anchor is denoted by the & indicator. It marks a node for future reference. An alias node can then be used to indicate additional inclusions of the anchored node. An anchored node need not be referenced by any alias nodes; in particular, it is valid for all nodes to be anchored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants