David Jagoe writes:

> I need to start a ring server from an upstart script on Ubuntu. Normally I
> would use an uberjar and execute java directly, but in this case I cannot
> do AOT and would like to simply run "lein ring server-headless" from my
> upstart script. Even when I use "lein trampoline" I get "respawning too
> fast" from upstart.

You can use an uberjar without AOT; just use something like this:

    $ java -cp my-uberjar.jar clojure.main -m my.namespace 8080

I think that's the proper invocation; you can do clojure.main --help for
details if that's not right. There is also a lein-otf plugin which can
create jars that work with `java -jar` without AOTing your own code.

-Phil

-- 
-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
[email protected]
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to