We're using that technique for both long-running server processes and small
web applications, i've covered in a blog post some time ago:
http://coffeenco.de/articles/how_to_deploy_clojure_code.html

Basically, create a jar and run it from a jar.

If you don't want to embed jetty, you can deploy to jetty container.
If you want to have uninterrupted deployments, use nginx and multiple sever
socket backends, kill old app after new app's startup.

As reg. configuration, you can check out a little application I wrote on
GitHub:
Here's a config file:
https://github.com/ifesdjeen/upload-challenge/blob/master/config/production.clj
Here's a primitive way to read it:
https://github.com/ifesdjeen/upload-challenge/blob/master/src/uploadchallenge/conf.clj

There are also scripts for deployment and so on, kind of a complete setup:
https://github.com/ifesdjeen/upload-challenge

Not sure how common our practice is, but we do it that way.

Have fun!

On Wed, Jan 9, 2013 at 12:38 AM, Josh Kamau <joshnet2...@gmail.com> wrote:

>
> I am new to clojure. My question is: Whats the common practice when it
> comes to deploying webapps built on compojure? running via lein ring server
> or creating a war file ?  I would also like to know which is the best way
> to put load configuration files  i.e using properties file... or using a
> reader to load .clj file with a hashmap def?
>



-- 
alex p

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

Reply via email to