|
|
1
6
上次我检查(很久以前)Ant中没有远程同步任务(仅 local ). 你必须 write a shell script that calls rsync 和 execute 这是蚂蚁写的。有很多 remote tasks 不过。你可以从 VCS 而不是同步到服务器。 另外,你可能想考虑一下 Phing 在蚂蚁上面。它是Ant到PHP的一个端口。它有一个 FileSync Task . 您还可以添加自己的任务(用PHP编写),这通常用于PHP的持续集成服务器。 另见 What is your preferred Deployment Strategy for PHP 以及 couple others . |
|
|
2
1
阅读手册: http://ant.apache.org/manual/index.html 查看“复制”任务。 |
|
|
3
0
我也是这么想的,刚刚看到这篇关于如何使用ant进行部署的文章,也许它会为您提供一种不同的方法: Deploying using Ant |