如何自动部署网络应用程序 [英] How to auto-deploy web-app

查看:156
本文介绍了如何自动部署网络应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为了部署一个网络应用程序,还没有提出一个合适的解决方案,我试图使一系列的方法自动化一系列的最佳方法。我想:


  1. 使用google的compiler.jar来缩小我的JS

  2. 使用yahoo的yui -compressor.jar来缩小我的CSS

  3. 访问一个文件并更改一个字符串,使头文件像global.css?v = 21得到正确的版本

  4. 部署应用程序(sftp,mercurial或rsync?)省略某些目录,如/ userfiles

人们把我放在正确的轨道上来解决这个问题?



谢谢!

解决方案>

您可能想查看 http://phing.info/ 的照片(他们正在进行中移动服务器可能会在本周末下降),但它可以完成您想要的所有内容,并以php编写。
快速的谷歌搜索应该会带来很多教程让你开始。


I'm trying to make sense on the best way to do automatize a series of things in a row in order to deploy a web-app and haven't yet came up with a suitable solution. I would like to:

  1. use google's compiler.jar to minify my JS
  2. use yahoo's yui-compressor.jar to minify my CSS
  3. access a file and change a string so that header files like "global.css?v=21" get served the correct version
  4. deploy the app (sftp, mercurial or rsync?) omitting certain directories like "/userfiles"

Can you guys put me on the right track to solve this?

Thank you!

解决方案

you may want to check out phing http://phing.info/ (they are in the process of moving servers so may be down this weekend), but it can do all of what you are wanting and is written in php. A quick google search should bring up plenty of tutorials to get you started.

这篇关于如何自动部署网络应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆