mwr / magedeploy2

Magento2 Deployment with Deployer
MIT License
28 stars 10 forks source link

make clean_dirs configurable #11

Closed Stevie-Ray closed 1 month ago

Stevie-Ray commented 6 years ago

Hi Matthias,

I was wondering, since Magento changed it's way of using var/generation I'd like to suggest to use:

        'clean_dirs' => explode(',',getenv('CLEAN_DIRS')) ?: [
            'var/cache',
            'var/di',
            'var/generation',
        ],

So we can use: CLEAN_DIRS = 'var/cache,generated/code,generated/metadata'

Let me know what you think,

Stevie