2

I would need to create a dpkg out of Play 2.0 Java project. It would run stand-alone with MongoDB (or some RDBS). It should be able to shutdown older version and ensure new version starts up cleanly.

Any advice how to create such? Any Play 2.0 related issues to take into account?

Edit: Looks like I will be using fpm

4

1 回答 1

0

所有这些包管理器安装基本上都是运行脚本。所以首先我会编写用于卸载、升级和安装的 bash 脚本。您必须考虑在重新安装时可以更换哪些部件,以及如何在数据库、文件复制和启动停止服务上应用迁移。与创建捆绑包相比,这是困难的部分。唯一需要考虑的就是玩!在需要更换某些东西时停止和启动服务器。

这可能会启发您启动关闭脚本: https ://gist.github.com/THemming/2173037

于 2013-05-01T18:49:18.267 回答