If you just want to deploy your application, and don't particularly care about having control over your system architecture, you might want to consider a platform like Heroku.
Otherwise, a common solution, and one I'd personally recommend, is to have a standalone app executed via Upstart, running behind an nginx proxy. Upstart allows you to run a process as a daemon, and it can do useful things like automatically restart a process if it unexpectedly terminates. Upstart is by no means the only program that does this, but it's the one Ubuntu uses and is therefore stable and well-tested. A HTTP proxy server like nginx is useful for buffering against restarts and application failures. You can configure nginx to buffer a request while your server restarts, or to distribute request over a cluster of processes, or to cache static content. You could create the standalone app manually, with a -main function that calls run-jetty, or use the lein-ring plugin and the "lein ring uberjar" command to do it for you. - James On 29 June 2013 15:47, Ravindra Jaju <ravindra.j...@gmail.com> wrote: > I want to deploy a small web app - serving mostly static content. I'm > using Luminus (http://www.luminusweb.net/) - which is quite neat in the > way it builds itself from well-known components. > > I'm having trouble deciding how to deploy it. I want some automation while > deploying upgrades, and would like it to be light-weight. Jetty, http-kit, > or immutant? > (I tried immutant - but it seems to be taking up too much memory for my > comfort, on my modest server.) > > Jetty and http-kit - I would like to hear about how I can deploy them as > nice system daemons, with monitoring etc. so that they can be brought up > automatically if something goes wrong. I'm also unable to find out how I > can do a re-deploy without restarting. > > Any help or pointers appreciated! > > Thanks, > jaju > > -- > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with > your first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > --- > You received this message because you are subscribed to the Google Groups > "Clojure" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojure+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/groups/opt_out. > > > -- -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.