问题标签 [phing]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
3 回答
1325 浏览

netbeans - 是否有任何可用于 phing 与 netbeans 的集成?

我找不到任何 netbeans 的 phing 插件

0 投票
1 回答
489 浏览

deployment - 网站部署

我正在开发 PHP Web 应用程序(主要构建在 CodeIgniter 之上)。部署此类站点的简单方法是什么?目前,部署通常包括:

  • 关闭网站
  • 做一个svn up

这在大多数情况下都很好。但是,我确实想做一些其他的事情:

  • 如果生产站点上的文件名与版本控制中的不同,则将版本号附加到图像、脚本和样式表的文件名中(并将标记、脚本等中的所有引用更新为这些新文件名)
  • 缩小所有脚本和样式表(并更新标记、脚本等中的所有引用)

回滚的能力也会很好。

我知道 Phing 和 Ant,但没有使用这些工具的经验。建议?

0 投票
1 回答
3860 浏览

phing - 如何遍历 phing 中的目录?

我想为一些插件创建 phing 任务,所以目录结构类似于

ETC..

我想在每个子目录上运行相同的任务 - 例如

  1. 为 plugin1 生成文档
  2. 为 plugin1 运行单元测试
  3. 在某处部署plugin1
  4. 为plugnin2生成文档...

这可能吗?我需要类似的东西

但对于目录。

或者我必须为每个插件独立编写 build.xml 吗?

非常感谢。

0 投票
1 回答
154 浏览

php - PHP:PHING 是否有任何可用的方法从我的类中生成类模型

我想在代码库中生成我所有类的类模型。我想知道是否有人知道已经有任何东西可以做到这一点。

我想做类似的事情:

http://maven.apache.org/plugins/maven-javadoc-plugin/examples/alternate-doclet.html

www.umlgraph.org/doc/indexw.html

我不确定 PHP 是否可以与 Phing 一起做任何事情。

谢谢你。

0 投票
1 回答
850 浏览

php - 如何修改文本文件中的令牌?

我有 3 个带有“[DBPASSWORD]”之类的令牌的配置文件,我想用 Phing 从我的“构建”任务中进行修改。我没有找到执行我需要的任务,在为此编写自己的任务之前,我想知道是否有人有更好的解决方案。

谢谢!

0 投票
2 回答
2484 浏览

php - 属性文件中的 Phing 属性应包含多个值

据我所知,在属性文件中不可能有一组值。在属性中存储多个值的最佳解决方案是什么?

例如属性文件的一部分

我想要的是一组属性,例如:

在 build.xml 中循环它们有
什么建议吗?
我可以想象将值除以 ; 并在 build.xml 中分解它们。有更好的建议吗?

0 投票
1 回答
1451 浏览

php - 使用 Phing 提取字符串

我有一个这样的目录结构:

我需要的是这样的目录结构:

我正在尝试通过这样的 Phing(必须是 phing)来实现这一点:

就像您已经看到的那样,我得到了一个目录名称,例如“file1.php”。我不知道如何剪切“.php”来创建正确的目录,因为 phing 映射器不会在这里工作。而且我也不知道如何复制 xml 文件。这必须是通用的,并且构建在 windows xp 下运行。

任何帮助表示赞赏。

0 投票
6 回答
10051 浏览

phing - 用Phing查找替换文件中的文本

有谁知道如何使用 Phing 查找和替换文件中的文本?

0 投票
3 回答
549 浏览

php - 在 Windows 上使用 eclipse 通过 Phing 提交

我正在使用 eclipse 将我的更改提交到 SVN。现在我想使用 Phing 自动化一些事情,这将在构建过程中进行提交。

svn commit 的 Phing 代码是:

以上在我的 Linux (ubuntu) 机器上运行良好。

在工作中,我必须使用 Windows 框 :( 而且我不确定我应该在 svnpath 中使用什么。

我需要安装任何其他软件吗?我不确定我是否可以使用 eclipse 的 subversion 插件的路径!我什至不知道它的路径。

任何人都可以帮助解决这个问题。

0 投票
4 回答
3478 浏览

php - Deploying a PHP webapp to multiple EC2 instances behind a Elastic Load Balancer

my question is basically two questions, but since they are closely related I thought that it makes sense to ask them en-bloque.

Case:
I am running a webapplication, which is distributed over multiple AWS EC2 instances behind a AWS Elastic Load Balancer

Intended goals:
a) When deploying new app code (php) it should be automatically distributed to all EC2 instances.
b) When new EC2 instances are added, they should automatically "bootstrap" with the latest appcode

My thoughts so far:
ad a)
phing (http://phing.info) is probably the answer for this part. i would probably add multiple targets for each EC2 instance and when running a deploy it would deploy to all machines. probably unfortunately not in parallel. but that might be even beneficial when scripting it in a way where the EC2 instance is "paused" in the load balancer, upgraded, "unpaused" again and on to the next instance.

ad b)
not sure how i would achieve that. in a conventional "hardware based setup" i probably had a "app code" volume on a network storage device and when adding a new server i'd simply attach that volume. when deploying new appcode i had just one deploy operation to this volume. so i need some "central storage" from where the newly bootstrapped machine/instance downloads it's appcode. i thought about git, but after all git is not a deploy tool and probably shouldn't be forced to be used as one.

I'd be happy to see your setups for such tasks and hear your hints and ideas for such a situation.

Thanks,

Joshua