How To Integrate Clojure Web Applications in Apache

后端 未结 7 857
萌比男神i
萌比男神i 2021-01-30 02:33

Note

Given this OP was written about two years ago, rather than ask the same question again, I am wondering if step-by-step instructions exist, so t

7条回答
  •  长发绾君心
    2021-01-30 02:44

    I've had some success using leiningen-war to generate a generic war file (assuming you are using leiningen, of course). It allows you to specify locations for static html, the location of a web.xml and other resources in your project.clj file.

    It wasn't too difficult for me to produce a generic war file that I was able to deploy to JBoss (running Tomcat as a servlet container) but I think you have to be pretty familiar with the web.xml format. I'm more comfortable with authoring my own web.xml so that may account for my liking this approach more.

    It appears that the person behind leiningen-war is recommending lein-ring now. I've started looking at that but so far I haven't been able to get a generic war file from it as easily.

    I agree though that accounting for production deployment is a weakness here.

提交回复
热议问题