GithubHelp home page GithubHelp logo

Comments (11)

inossidabile avatar inossidabile commented on June 18, 2024

Try master please so I could release.

from grunt-ftpush.

tommyarnott avatar tommyarnott commented on June 18, 2024

Unfortunately only seems to work at creating a new directory one level down. If a new directory structure is added that is 2 or more deep then it fails. Please see below:

Uploaded file: one.html to: \one
Uploaded file: two.html to: \one\two
Uploaded file: three.html to: \one\two\three
(Here added one, two, three as separate stages after so ftpush was only ever creating one new directory).

Uploaded file: file.html to: \dev1\dev2
Fatal error: read ECONNRESET
(No new directories are added to remote server)

Uploaded file: test.html to: \test\test2\test3
Fatal error: read ECONNRESET
(No new directories are added to remote server)

from grunt-ftpush.

inossidabile avatar inossidabile commented on June 18, 2024

hm, weird. Can you show me --debug output?

from grunt-ftpush.

tommyarnott avatar tommyarnott commented on June 18, 2024

Please see below:

C:\xampp\htdocs\Popped.co.uk>grunt ftpush --debug
Running "ftpush:dev" (ftpush) task
[D] Task source: C:\xampp\htdocs\Popped.co.uk\node_modules\grunt-ftpush\tasks\ft
push.coffee
[D] Collecting information...
[D] Initializing synchronizer...
[D] Local root set to 'C:\xampp\htdocs\Popped.co.uk\build'
[D] Building tree: Recursing into C:\xampp\htdocs\Popped.co.uk\build\dir1
[D] Building tree: Recursing into C:\xampp\htdocs\Popped.co.uk\build\dir1\dir2
[D] Building tree: Added C:\xampp\htdocs\Popped.co.uk\build\dir1\dir2\file.txt
[D] Building tree: Recursing into C:\xampp\htdocs\Popped.co.uk\build\folder1
[D] Building tree: Recursing into C:\xampp\htdocs\Popped.co.uk\build\folder1\fol
der2
[D] Building tree: Added C:\xampp\htdocs\Popped.co.uk\build\folder1\folder2\file
.txt
[D] 5 paths found
[D] Synchronizer initialized...
[D] Uploading started...

Authenticated as poppedstagingdev
[D] Switching to simple mode...
[D] Upload 'file.txt' '\folder1\folder2' 'd41d8cd98f00b204e9800998ecf8427e'
Uploaded file: file.txt to: \folder1\folder2
Fatal error: read ECONNRESET

from grunt-ftpush.

inossidabile avatar inossidabile commented on June 18, 2024

I'm not sure how this is happening. I've added a bit more of debug output to simple mode. Can you install master and try again with -d?

from grunt-ftpush.

tommyarnott avatar tommyarnott commented on June 18, 2024

No problem, please see below:

C:\Users\tommya\Documents\xampp\htdocs\Popped.co.uk>grunt ftpush --debug
Running "ftpush:dev" (ftpush) task
[D] Task source: C:\Users\tommya\Documents\xampp\htdocs\Popped.co.uk\node_module
s\grunt-ftpush\tasks\ftpush.coffee
[D] Collecting information...
[D] Initializing synchronizer...
[D] Local root set to 'C:\Users\tommya\Documents\xampp\htdocs\Popped.co.uk\build
'
[D] Building tree: Recursing into C:\Users\tommya\Documents\xampp\htdocs\Popped.
co.uk\build\t1
[D] Building tree: Recursing into C:\Users\tommya\Documents\xampp\htdocs\Popped.
co.uk\build\t1\t2
[D] Building tree: Added C:\Users\tommya\Documents\xampp\htdocs\Popped.co.uk\bui
ld\t1\t2\testfile.php
[D] 3 paths found
[D] Synchronizer initialized...
[D] Uploading started...

Authenticated as poppedstagingdev
[D] Switching to simple mode...
[D] Make directory '\t1\t2'
[D] Remote folder wasn't creted (isn't empty?) \t1\t2 --> Error: 550 /t1/t2: No
such file or directory
[D] Upload 'testfile.php' '\t1\t2' 'd41d8cd98f00b204e9800998ecf8427e'
Uploaded file: testfile.php to: \t1\t2
Fatal error: read ECONNRESET

from grunt-ftpush.

inossidabile avatar inossidabile commented on June 18, 2024

Please try master with -d.

from grunt-ftpush.

tommyarnott avatar tommyarnott commented on June 18, 2024

Seems fixed to me:

C:\Users\tommya\Documents\xampp\htdocs\Popped.co.uk>grunt ftpush --debug
Running "ftpush:dev" (ftpush) task
[D] Task source: C:\Users\tommya\Documents\xampp\htdocs\Popped.co.uk\node_module
s\grunt-ftpush\tasks\ftpush.coffee
[D] Collecting information...
[D] Initializing synchronizer...
[D] Local root set to 'C:\Users\tommya\Documents\xampp\htdocs\Popped.co.uk\build
'
[D] Building tree: Recursing into C:\Users\tommya\Documents\xampp\htdocs\Popped.
co.uk\build\d1
[D] Building tree: Recursing into C:\Users\tommya\Documents\xampp\htdocs\Popped.
co.uk\build\d1\d2
[D] Building tree: Added C:\Users\tommya\Documents\xampp\htdocs\Popped.co.uk\bui
ld\d1\d2\file.txt
[D] Building tree: Recursing into C:\Users\tommya\Documents\xampp\htdocs\Popped.
co.uk\build\t1
[D] Building tree: Recursing into C:\Users\tommya\Documents\xampp\htdocs\Popped.
co.uk\build\t1\t2
[D] Building tree: Added C:\Users\tommya\Documents\xampp\htdocs\Popped.co.uk\bui
ld\t1\t2\testfile.php
[D] 5 paths found
[D] Synchronizer initialized...
[D] Uploading started...

Authenticated as poppedstagingdev
[D] Switching to simple mode...
[D] Touch 'd1'
[D] Touch 'd1\d2'
[D] Make directory 'd1'
[D] Make directory 'd1\d2'
New remote folder created d1
[D] Upload 'file.txt' '\d1\d2' 'd41d8cd98f00b204e9800998ecf8427e'
New remote folder created d1\d2
Uploaded file: file.txt to: \d1\d2

Done, without errors.

I also tested with 4 directories deep and worked with no issue.

from grunt-ftpush.

inossidabile avatar inossidabile commented on June 18, 2024

Hell Yeah! 💃

from grunt-ftpush.

tommyarnott avatar tommyarnott commented on June 18, 2024

Ha, great stuff. Thanks for the fix!

from grunt-ftpush.

inossidabile avatar inossidabile commented on June 18, 2024

0.3.3 released

from grunt-ftpush.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.