4 ms·
Someone should deploy this.
by michaelty 16y ago
Someone should deploy this.
- macmac 16y agoAnd write a post about how the did the deployment (incl. server setup)
- pjscott 16y agoHere's an article I think you'll like: http://jeroenvloothuis.blogspot.com/2010/07/deploying-clojure-web-application.html http://jeroenvloothuis.blogspot.com/2010/07/deploying-clojur... It walks you through taking a Clojure web app that uses the Ring middleware -- similar to WSGI in Python, or Rack in Ruby -- and deploying it as a WAR file that runs under Tomcat, behind Apache. Since the OP uses Ring, this should work. It's also possible to run the app from a REPL on your server, with a Swank connection to emacs for remote hot-patching and debugging, with something like nginx in front of the built-in Jetty HTTP server, but that's not really something I'd feel good about.
- weavejester 16y agoThe lein-ring plugin provides a slightly easier way of generating war files from Ring handlers: https://github.com/weavejester/lein-ring https://github.com/weavejester/lein-ring
- pjscott 16y agoNice! That looks like the Right Thing.