On 18 August 2013 17:21, John Jacobsen <eigenhom...@gmail.com> wrote:

> On Aug 17, 2013, at 4:52 PM, Ray Miller <r...@1729.org.uk> wrote:
>
>> One option is simply to write an upstart script that invokes 'lein
>> ring server-headless' and sit an apache or nginx proxy in front of it.
>> That's how my website is currently running. Alternatively, you could
>> deploy your application as a war to tomcat or jetty.
>>
>> The upstart configuration, which is installed to /etc/init/cms.conf,
>> can be found here: https://gist.github.com/ray1729/6258845
>
> That's very helpful -- can you be a little more specific about what you mean 
> by "sit an apache or nginx proxy in front of it"?  It looks like your example 
> is self-contained (need Clojure/lein + upstart, and that's it).

The Ring server is listening on localhost (port 3000 by default). I've
set up an apache reverse proxy that routes requests to the Compojure
application. This gives a bit more flexibility e.g. if you have other
services on the same machine, or want apache to serve static content
directly.

Ray.

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

Reply via email to