Comments (9)
Did it get through diff part? Can you show me the whole output?
from grunt-ftpush.
Yes, it got through the diff part.
Running "ftpush:build" (ftpush) task
>> Authenticated as (redacted)
>> Got diff for / 14 0 0
>> Got diff for /images 1 0 0
>> Got diff for /lang 51 0 0
>> Got diff for /styles 1 0 0
>> Got diff for /styles/fonts 0 0 0
>> Got diff for /styles/fonts/Ornaments 5 0 0
>> Got diff for /styles/fonts/Calendas_Plus 22 0 0
>> Got diff for /templates 13 0 0
>> Got diff for /lib 13 0 0
>> Got diff for /lib/feed 3 0 0
>> Got diff for /lib/vendor 2 0 0
>> Got diff for /lib/widgets 1 0 0
>> Got diff for /scripts 3 0 0
>> Got diff for /views 3 0 0
>> Uploaded file: template-custom.php to: /
>> Uploaded file: functions.php to: /
>> Uploaded file: style.css to: /
>> Uploaded file: favicon.ico to: /
>> Uploaded file: robots.txt to: /
>> Uploaded file: template-sidebar.php to: /
>> Uploaded file: config.json to: /
>> Uploaded file: page.php to: /
>> Uploaded file: README.md to: /
>> Uploaded file: index.php to: /
>> Uploaded file: .htaccess to: /
>> Uploaded file: base.php to: /
>> Uploaded file: single.php to: /
>> Uploaded file: 404.php to: /
>> Uploaded file: logo.png to: /images
Where despite the fact it says it Uploaded logo.png, it appears to not have.
from grunt-ftpush.
I'm starting to wonder if I've got an error in my config.
ftpush: {
build: {
auth: {
host: 'redacted',
port: redacted,
authKey: 'blog'
},
src: 'wordpress/wp-content/themes/mariehogebrandt/',
dest: 'ftp/'
// exclusions: []
// keep: []
}
},
The account that I'm using for ftp has access to a subfolder along the lines of themes/mariehogebrandt
, and while I'm testing I'm trying to upload everything to the subfolder of that, ie themes/mariehogebrandt/ftp
. Now I'm getting the error of
Warning: Cannot delete file: ftp/404.php --> Error: 550 Could not delete ftp/ftp/404.php: No such file or directory Use --force to continue.
which suggests to me that there is some kind of weird repetition somewhere... Does the dest
need to be at the root of the FTP-account's access?
from grunt-ftpush.
src
is a path to the root of LOCAL directory you want to upload. It starts from directory containing Gruntfile
unless starting '/' specified. And from global root otherwise.
dest
is a path to the root of REMOTE directory that you want to upload to. It starts from current working dir that you appear at when you login to your FTP (it's root in most cases). And from possible remote root otherwise.
To totally clarify, the uploader is just concatenating strings for you then passes it to server. So depending on the server implementation (which can have different settings) you can get different result. In your case i.e. "wordpress/wp-content/themes/mariehogebrandt/path/to/file.jpg" would be uploaded to "ftp/path/to/file.jpg". And as I mentioned previously the actual resolve of latter path depends on your CWD at the remote side.
So if you don't want to depend on settings and implementations, use an absolute path for the dest
setting.
from grunt-ftpush.
Regarding the diff part. Is that 'logo.png' the last file that has to be uploaded? There's a bug in implementation of jsftp
that makes it call "uploaded" callback before a file was actually uploaded. So at the moment you see this message it has just started uploading probably. However if the session is terminating properly inside the code, jstftp
finishes uploading prior to exit
callback trigger.
So probably at this point it's finalizing logo.png
upload and is waiting for the exit
trigger. The reason why it can freeze is still unclear to me cause I can't reproduce it in any way.
Could you please try running the command with --simple
option? It forces "just upload what changed" mode. Will the issue stay?
from grunt-ftpush.
Thanks for the quite thorough explanation of src/dest. That was pretty much exactly what I thought, though makes me wonder if there's something in the server settings that's messing things up.
There's quite a few more files that has to be uploaded (an entire theme, to be exact). I'm running with --simple
right now, and will let you know what happens. At the moment it's trying to upload one of my fonts, it appears.
from grunt-ftpush.
Please also try the new 0.1.3 version with the --debug
key and show me the output.
from grunt-ftpush.
Fixed as of 0.1.5 (at least - that's the one I tested with now). Thanks, you've just solved the final thing that has been bugging me with using grunt in development (I test, get dependencies, build... And then I have to go into a program to upload it? How retro! =)
Will be closing this once I've confirmed it on the live site properly, and also confirmed that it can handle some of the updates that will happen on a regular basis.
from grunt-ftpush.
Let me close it for now. You can always reopen if something goes wrong.
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.