Deployer: Using "add" in a host overwrites global configuration

Created on 10 Apr 2018  路  3Comments  路  Source: deployphp/deployer

| Q | A
| ----------------- | ---
| Issue Type | Question
| Deployer Version | 6.1.0
| Local Machine OS | Ubuntu 16.04
| Remote Machine OS | N/A

Description

It seems like using add in a host overwrites the global shared_dirs configuration.
Is that an expected behavior?

Steps to reproduce

Set global shared_dirs and then add new dirs per host.
The global shared_dirs are not created during deployment.
In the example below, public/global/dir would not be created.

Content of deploy.php

add('shared_dirs', [
    'public/global/dir',
]);

host('production')
    ->add('shared_dirs', [
        'public/specific/host/dir',
    ]);
bug

All 3 comments

Will fix it in v6.2

Actually this requires some major refactoring, so I think it will go to v7. :(

...and now it's fixed!!!!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

krve picture krve  路  4Comments

ElForastero picture ElForastero  路  3Comments

dima-stefantsov picture dima-stefantsov  路  5Comments

sweebee picture sweebee  路  3Comments

jolipixel picture jolipixel  路  4Comments