1

As many apps do, we have a number of config and properties files for our Java applications. We have gone with the approach of keeping these files separate from our codebase (i.e. they are not included in the war files for deployment) but in a separate directory. However, I would still like to track changes to these files in a source control and deploy them using our CI.

I'm looking for strategies on how others have done this. Did you write a script to push the files to the app server(s). Does the script live on the CI server?

Our SCM is Mercurial which we have set up on its own server to use as a central repo. Our CI is Hudson (not Jenkins) set up on its own server and of course our app servers are separate from these as well. All servers are *nix OS.

4

1 回答 1

0

考虑使用puppetchef 之类的配置管理工具来管理所有应用程序配置文件。这两种工具都使用“清单”或“收据”,它们可以置于修订控制之下,并与部署应用程序的每个服务器相匹配。

另一种选择是考虑为您的操作系统开发安装包,有关更多详细信息,请参阅以下文章:

这样做的好处是可以将安装配置为生成为其部署的环境量身定制的正确配置。一个更重要的好处是它更易于管理和安装。

于 2012-08-26T21:38:32.747 回答