fadion / Maneuver

Easily deploy Laravel projects via FTP or SFTP, using Git for versioning
MIT License
174 stars 26 forks source link

ignored path not honoured #18

Closed ockam closed 8 years ago

ockam commented 8 years ago

Using the dev-l5 branch on a Laravel 5.1 project, my config contains the following ignored paths:

    'ignored' => [
        'laravel/resources/assets/*',
    ]

But the assets folders gets created anyway.

Am I doing it wrong or this is a bug?

fadion commented 8 years ago

Sorry for the late reply. I've missed this issue.

The ignored array expects a list of files, not folders. It was thought as a simple way to add a few files from being deployed. You can either add assets to .gitignore or add the full list of files in the ignored config option, which could be bothersome.

You can also check that the implementation is a simple array_diff() to remove the ignored list from the currently built files list.