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

Not excluding file when pushing theme through FTP #509

Closed tameroski closed 5 years ago

tameroski commented 5 years ago

Hi,

Im pushing my theme through FTP, and ignored folders keep being transfered. There might be something wrong in my movefile.yml but i can't figure it out :

global:
    sql_adapter: wpcli

local:
    vhost: http://localhost:80
    wordpress_path: "<%= Dir.pwd %>" 

staging:
    vhost: xxx
    wordpress_path: aaa
    wordpress_absolute_path: /home/user/aaa

    ftp:
        host: xxx
        user: xxx

    exclude:
        - 'wp-content/themes/bbbb/src/' # this keeps being transfered

...

I simply run : wordmove push -e staging -t

Here is some output :

   remote | put_directory: /Users/MyUser/dev/wp-content/themes aaa/wp-content/themes src wp-content/themes/bbbb/src/
    ℹ️  info | lftp -c 'set ftp:list-options -a; set ftp:passive-mode false; set cmd:fail-exit true; open -p 21 ftp://xxx@xxx; find -d 1 aaa/wp-content/themes || mkdir -p aaa/wp-content/themes; lcd /Users/MyUser/dev/wp-content/themes; cd aaa/wp-content/themes; mirror --delete --use-cache --verbose --no-perms --allow-suid --no-umask --parallel=5 --reverse --dereference --exclude-glob src --exclude-glob wp-content/themes/bbbb/src/'
Password: 
aaa/wp-content/themes/                                           
Removing old file `bbbb/src/test.txt'                           
Transferring file `bbbb/src/test.txt'

Wordmove 4.0.0 LFTP 4.8.4

Any idea ?

tameroski commented 5 years ago

I didn't notice that FTP support was discontinued, sorry. I switched to ssh anyway and everything's fine with it.