Re: Deploy best practices

2014-09-20 Thread Ruslan Prokopchuk
I use https://github.com/magnars/optimus to bundle assets, so it's not a problem to recompile clojurescript when old instance is running, because old compiled file seats in bundle cache. But do you mean that if I start aot-compiled uberjar it will start fast, so I can kill old instance and then

Re: Deploy best practices

2014-09-20 Thread Laurent PETIT
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

Re: Deploy best practices

2014-09-18 Thread Avi Avicenna
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 tutoria

Re: Deploy best practices

2014-09-18 Thread Thomas Heller
I use http-kit as a web server as well. My deployment basically looks like this: My main function starts my "app", once I have an app instance I attempt to start the http-kit server on a specific port. I do this in a loop, catching all socket already bound exceptions and retrying. Additionally

Re: Deploy best practices

2014-09-18 Thread Kalina Todorova
Or maybe try with immutant http://immutant.org/ Best regards | Med venlig hilsen, KALINA TODOROVA T: 0045 52 64 93 73 E: ad...@ki6i.com Frederikssundsvej 194 2 1 2700 Brønshøj

Re: Deploy best practices

2014-09-18 Thread Max Penet
You can use nginx as reverse proxy, load balance on 2 apps that are running on 2 different ports, and manage to always leave one alive when doing deploys. clojars has some document (probably not very up to date) about this kind of setups: http://p.hagelb.org/clojars-deploy On Thursday, Sept

Deploy best practices

2014-09-18 Thread Ruslan Prokopchuk
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 cl