简体   繁体   English

跨平台项目自动化

[英]Cross platform project automation

The web shop where I work we do both .Net and PHP/Linux development. 我工作的网上商店同时进行.Net和PHP / Linux开发。 We'd like to start automating a lot more of our deployment processes using a common system that can be used for both. 我们想开始使用可用于两者的通用系统来自动化更多部署过程。 What would you recommend as a good common scripting language or automation system (like Ant or Maven) that works well for both .Net and Linux development? 您会推荐什么适合于.Net和Linux开发的良好通用脚本语言或自动化系统(例如Ant或Maven)?

I have no experience with Maven, but we've managed to get Ant to do everything we've wanted on multiple platforms, just by virtue of the fact that you can extend it with any Java program to do special tasks not included with the Ant application itself. 我没有Maven的经验,但是我们已经设法让Ant在多个平台上完成我们想要的一切,这是因为您可以使用任何Java程序将其扩展以执行Ant所没有的特殊任务。应用程序本身。

And then Java can, if necessary, call any external program you want to by using Runtime.exec(). 然后,如果需要,Java可以使用Runtime.exec()调用您想要的任何外部程序。 Loses a bit of the portability but it was required for some command-line tools under both Linux and Windows. 失去了一些可移植性,但是在Linux和Windows下,某些命令行工具都需要它。

You may want to see how Perl does cross platform automation. 您可能想看看Perl如何实现跨平台自动化。 The design for Perl6, seems to be a bit better designed, but the Perl5 design has had many years to develop. Perl6的设计似乎要好一些,但是Perl5设计还有很多年的开发时间。

Perl has been ported to many different platforms, not just Linux and Windows. Perl已被移植到许多不同的平台,而不仅仅是Linux和Windows。

You may get some mileage out of Capistrano . 您可能会从Capistrano获得一些里程。 It is rails centric but it is pretty general purpose, and I believe it has been extended to do other things also. 它是以Rails为中心的,但这是通用的,我相信它也已扩展到可以做其他事情。 Not sure how well it plays with Windows and .NET, but worth a look. 不知道它在Windows和.NET中的表现如何,但是值得一看。

You can develop .net on linux using Mono . 您可以使用Mono在Linux上开发.net。 On that linux server you can use both .net and php. 在该linux服务器上,您可以同时使用.net和php。

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

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