I also wanted to point this to you: doing the clojure / clojurescript compilation in a first step (so to say, create an über jar), and then just start the über jar.
Note that this doesn't require you to change your current workflow if you're used to the "git push" triggers redeploy strategy. The über jar creation can be handled on your server, but in a first step not involving starting the new server at the same time. "Decomplect" compilation time and runtime, buddy :-) Le jeudi 18 septembre 2014, Avi Avicenna <maverick.avice...@gmail.com> a écrit : > How do you deploy and run your application? > > is it just git push to server and do > > lein run .... > > > or creating uberjar then copy the uberjar to server then > > java -jar ... > > leiningen contributors recommend using uberjar if possible. you can read > it in "Server Side Projects" part > > lein help tutorial > > or > > > https://github.com/technomancy/leiningen/blob/master/doc/TUTORIAL.md#server-side-projects > > > Either way, you don't have to kill your current running webapp then > running your new webapp. You can start your new webapp and in your webapp > startup process, you can kill the old webapp process. After the old webapp > process killed you can bind your new webapp to the previously used port by > old webapp. > > I found the above idea in > http://shenfeng.me/fast-restart-clojure-webapp.html > and there's this gist which you can put in your webapp startup process > https://gist.github.com/4283150 > > > > On Thursday, 18 September 2014 15:53:04 UTC+7, Ruslan Prokopchuk wrote: >> >> Community, how do you deploy clojure web applications? This question have >> been asked several times, but I've not found answer to this particular >> aspect: >> what is the best way to deal with startup delay? >> >> I develop web application using http-kit and clojurescript. After deploy >> I clean & rebuild clojurescript and rerun server. So, I have about half of >> minute of downtime. >> >> I will be grateful for any advice. >> > -- > 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 > <javascript:_e(%7B%7D,'cvml','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 > <javascript:_e(%7B%7D,'cvml','clojure%2bunsubscr...@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 > <javascript:_e(%7B%7D,'cvml','clojure%2bunsubscr...@googlegroups.com');>. > For more options, visit https://groups.google.com/d/optout. > -- Laurent Petit -- 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/d/optout.