Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

And write a post about how the did the deployment (incl. server setup)


Here's an article I think you'll like:

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.


The lein-ring plugin provides a slightly easier way of generating war files from Ring handlers:

https://github.com/weavejester/lein-ring


Nice! That looks like the Right Thing.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: