Ubuntu的包装 - Web应用程序 [英] Packaging for Ubuntu - Web Application

查看:196
本文介绍了Ubuntu的包装 - Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Web应用程序没有与C ++或类似的东西不同的make文件。但是,它需要放在特定的目录中......例如/ var / www。

A web application has no make file unlike C++ or anything like that. However, it needs to be placed into specific directories...e.g /var/www.

我是linux打包的新手,所以我的问题是,如何将我的应用程序打包成.deb,以便在安装时,它会被放入某个东西中喜欢/etc/myprogram/bundles/myprogram-3.4?我特别是在apache tomcat上运行的java应用程序。

I'm new to linux packaging, so my question is, how do I package my app into a .deb such that when its being installed, it gets put into something like /etc/myprogram/bundles/myprogram-3.4? Mine in particular is a java app running on apache tomcat.

我通过精心阅读 http://www.debian.org/doc/manuals/maint-guide 。但是,当我按照说明操作时,我最终得到了

I've managed to create a .deb file by reading painstakingly every word in http://www.debian.org/doc/manuals/maint-guide. However when I follow the instructions I end up getting

1)一个1.7kb的.deb文件而不是它应该的~240mb,因为显然它缺乏我的所有源代码。
2)困惑,因为我不知道我是否应该写一些makefile。我甚至不确定在哪里学习该问题的答案,然后我必须处理如何编写makefile。

1) a .deb file that is 1.7kb instead of the ~240mb that it should be, because apparently it is lacking all my source code. 2) confused because I don't know whether I was supposed to write some sort of makefile. I am not even sure where to go about learning the answer to that question, and then I'd have to deal with how to write a makefile.

我发布了与ubuntuforums类似的问题,但我觉得我更有可能在这里得到回应。

I've posted a similar question to ubuntuforums, but I feel like I'm more likely to get a response here.

推荐答案

构建工具Java程序是ANT。使用ANT,您可以构建一个WAR文件并将其部署到Tomcat。

The build tool for Java programs is ANT. With ANT you build a WAR file and deploy that to Tomcat.

以下简要介绍一下它的外观: http://javabeanz.wordpress.com/2009/02/12/how-to-create-a-war-file-using- ant /

以下是使用ANT构建war文件的教程: http://techtracer.com/2007/04/16/the-great-ant-tutorial-a-great-jump-start/

Here is a brief glimpse at how it looks: http://javabeanz.wordpress.com/2009/02/12/how-to-create-a-war-file-using-ant/
and here is a tutorial on building a war file with ANT: http://techtracer.com/2007/04/16/the-great-ant-tutorial-a-great-jump-start/

这篇关于Ubuntu的包装 - Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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