Comments (11)
Try master please so I could release.
from grunt-ftpush.
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.
hm, weird. Can you show me --debug
output?
from grunt-ftpush.
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.
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.
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.
Please try master with -d
.
from grunt-ftpush.
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.
Hell Yeah! 💃
from grunt-ftpush.
Ha, great stuff. Thanks for the fix!
from grunt-ftpush.
0.3.3 released
from grunt-ftpush.
Related Issues (20)
- Fails after trying to delete a file that doesn't exist HOT 1
- grunt-ftppush follows symlinks
- SFTP Support HOT 2
- 213 Error when uploading existing file HOT 3
- useless directories are made on server root
- Got diff but doesn't upload HOT 1
- Warning: EACCES, permission denied '/.DocumentRevisions-V100' HOT 1
- "keep" doesn't work with subfolders HOT 1
- exclusions not working HOT 7
- Unexpected token error HOT 1
- Creating New Directory not working HOT 2
- Warning: Cannot delete file HOT 7
- I don't get any error when FTP upload fails.
- Error on ftp socket: Error: read ECONNRESET HOT 4
- update dependencies
- No username password throws error HOT 1
- Uploads one file and then stalls forever HOT 1
- -
- Feature Request: FTPS Support
- Adding new directories instead of changing files in subfolders when pushing to FTP
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grunt-ftpush.