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
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.

Reply via email to