【问题标题】:wordmove Validating movefile section: production error This remote has not ssh nor ftp protocol definedwordmove 验证 movefile 部分:生产错误此远程未定义 ssh 或 ftp 协议
【发布时间】:2018-06-05 00:44:49
【问题描述】:

我是wordmove 的新手。 我在本地服务器中创建了 movefile.yml,但医生命令说:

▬▬ ✓ Validating movefile section: production ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    error | This remote has not ssh nor ftp protocol defined

▬▬ ✓ Validating movefile section: ssh ▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
    error | This remote has not ssh nor ftp protocol defined

我的远程服务器托管在 godaddy 上,终端 ssh 连接运行良好。 有什么建议吗?

【问题讨论】:

    标签: ssh ftp movefile


    【解决方案1】:

    ssh 键的缩进错误。我得到它是因为医生正在考虑将ssh 作为一个部分(因此是 YAML 中的根键),所以它应该是这样的:

    production:
      vhost:
      wordpress_path:
      [...]
    ssh:
    

    但是ssh必须嵌套在production

    production:
      vhost:
      wordpress_path:
      [...]
      ssh:
    

    如果是这样,那么医生是对的:您的 production 缺少 ssh 部分。

    【讨论】: