1

我是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 连接运行良好。有什么建议吗?

4

1 回答 1

1

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

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

ssh必须嵌套在里面production

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

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

于 2018-01-04T23:46:01.950 回答