welaika / wordmove

Multi-stage command line deploy/mirroring and task runner for Wordpress
https://wptools.it/wordmove
MIT License
1.87k stars 165 forks source link

Exclude & FTP #486

Closed tameroski closed 6 years ago

tameroski commented 6 years ago

Is the "exclude" feature supposed to work with an FTP push ?

.git directory should be excluded but is still transfered anyway 😞

command : wordmove push -e production -t

configuration :

...
production:
    vhost: http://www.xxxxxxxx.com
    wordpress_path: /www

    database:
        name: xxxxx
        user: xxxxx
        password: xxxxxx
        host: xxxxxxxx

    exclude:
        - '.git'
        - 'wp-content/themes/xxx/.git'
        - 'xxx/.git'

    ftp:
        user: xxxxxx
        host: xxxxxx

    hooks:
        push:
            before:
                local:
                    - 'cd wp-content/themes/xxx && npm install && npm run prod && git commit --amend --no-edit && git push -f origin master && cd ../../..'

PS : it's working just fine with the same configuration on another environnement using SSH

alessandro-fazzi commented 6 years ago

Yes it is. I'll check your issue

alessandro-fazzi commented 6 years ago

Before I'll check in depth: have you tried to add a trailing slash?

.git/

tameroski commented 6 years ago

I just tried and it's ok with a trailing slash.

alessandro-fazzi commented 6 years ago

I just tried and it's ok with a trailing slash.

😲 Oh! So, if I understood, that was the only problem @tameroski ? Should we close the issue?