简体   繁体   English

phing + sftp作为自动构建的一部分上传网站

[英]phing + sftp to upload site as part of automated build

Does anybody know of an easy way to upload files to a remote server using SFTP from within a Phing build? 有人知道在Phing构建中使用SFTP将文件上传到远程服务器的简单方法吗? I cant seem to find a custom or native Phing task to do this. 我似乎无法找到自定义或本地Phing任务来执行此操作。 The other problem is the interactivity of the SFTP unix command (requiring a password after reaching host, etc.) 另一个问题是SFTP unix命令的交互性(到达主机后需要密码等)

Any ideas? 有任何想法吗?

Why not use SCP (Secure Copy)? 为什么不使用SCP (安全复制)? It's directly supported by Phing (See the scp Task documentation ). 它由Phing直接支持(请参阅scp任务文档 )。

For an overview of the differences, see this website ... 有关差异的概述,请参阅此网站 ...

您可以使用phing sftp任务: https//github.com/discont/phing-sftptask

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM