错误:550无法创建目录:没有此类文件或目录

时间:2016-01-25 13:59:13

标签: gruntjs

使用grunt-ftp-deploy时出现此错误:

Error creating new remote folder /html/ux-protos-test/ --> Error: 550 Can't create directory: No such file or directory

这是我的grunt任务文件:

module.exports = {
  build: {
    auth: {
      host: 'ux.machinas.com',
      port: 21,
      authKey: 'key1'
    },
    src: 'build/templates',
    dest: 'html/ux-protos-test',
    exclusions: [
      '.DS_Store',
      '.gitignore',
      '.ftppass'
    ]
  }
}

可能出现什么问题?

1 个答案:

答案 0 :(得分:0)

您必须在dest中指定完整路径,而不是相对路径。

可能包含您正在部署的用户的主目录,例如:/home/your_user/public_html/html/ux-protos-test

相关问题