Hi guys, i am trying to set up using grunt-ftpush within my theme dev environment, but it does not seem to be working correctly.
What i want to happen is for me to be running “grunt watch” on my theme/project folder, so when i make a save to a file, it will push any changed file to my server.
All instructions were taken from: https://npmjs.org/package/grunt-ftpush
I have installed grunt-ftpush into the theme folder using the command (from right-clicking the folder and opening Git Bash):
npm install grunt-contrib-testem --save-dev
I then add to the grunt.js script:
grunt.loadNpmTasks('grunt-contrib-testem');
and
ftpush: {
build: {
auth: {
host: 'server.com',
port: 21,
authKey: 'key1'
},
src: 'path/to/source/folder',
dest: '/path/to/destination/folder'
}
}
… with the correct paths, of course (that may not have formatted properly here, but is the same as on their website). I have also set up the .ftppass file.
When i run “grunt watch” i get the message “Local Npm module grunt-contrib-ftpush not found. Is it installed?”
I do get 5 warnings when installing this grunt script, which can be seen in the screenshot i have attached to this post. They appear to be referring to a previous version of node.js?
Any ideas on what i am doing wrong?
Cheers in advance for your help.