Closed yonatanmn closed 9 years ago
I'm using grunt-ftp-push to upload my files to server.
I'm trying to register two different tasks - BuildPushDev and BuildPush, so I tried this:
ftp_push: { dev:{ your_target: { options: { username: "xxx", password: "yyy", host: "server.com", dest: '/site/wwwroot/dev/' }, files: [ { expand: true, cwd: 'dist/assets', } ] } }, prod: { your_target: { options: { username: "xxx", password: "yyy", host: "server.com", dest: '/site/wwwroot/prod/' }, files: [ { expand: true, cwd: 'dist/assets', } ] } } } grunt.registerTask('buildPush', [ 'build', 'ftp_push:prod' ]); grunt.registerTask('buildPushDev', [ 'build', 'ftp_push:dev' ]);
but it's not working: and I'm getting You did not specify all the requirements error.
You did not specify all the requirements
What am I doing wrong - or what alternatives can I use to register different tasks here?
got my answer... https://stackoverflow.com/questions/28702056/grunt-ftp-push-with-more-than-one-destination
I'm using grunt-ftp-push to upload my files to server.
I'm trying to register two different tasks - BuildPushDev and BuildPush, so I tried this:
but it's not working: and I'm getting
You did not specify all the requirements
error.What am I doing wrong - or what alternatives can I use to register different tasks here?