Thanks for all the contribution in thread.
Josh
On Thu, Jan 10, 2013 at 8:48 AM, kinleyd wrote:
> Yes, thank you all. This was a very useful thread.
>
>
> On Thursday, January 10, 2013 9:35:38 AM UTC+6, John Gabriele wrote:
>>
>> Thanks, all. Updated CDS basic web dev tut with this deployment
Yes, thank you all. This was a very useful thread.
On Thursday, January 10, 2013 9:35:38 AM UTC+6, John Gabriele wrote:
>
> Thanks, all. Updated CDS basic web dev tut with this deployment info.
>
> ---John
>
>
--
You received this message because you are subscribed to the Google
Groups "Clojure"
Thanks, all. Updated CDS basic web dev tut with this deployment info.
---John
--
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 pat
John Gabriele writes:
> Ooof. Of course. It needed a `(:gen-class)` at the end of handler.clj's ns
> macro.
You don't actually need gen-class, you can do a fully-non-AOT'd uberjar
and just invoke it with -cp instead of -jar:
$ java -cp myproject-1.0.0-standalone.jar clojure.main -m myproject
On Wednesday, January 9, 2013 5:03:49 PM UTC-5, Aaron Cohen wrote:
>
> On Wed, Jan 9, 2013 at 4:27 PM, John Gabriele
> > wrote:
>
>> On Wednesday, January 9, 2013 4:08:50 PM UTC-5, Phil Hagelberg wrote:
>>>
>>>
>>> John Gabriele writes:
>>>
>>
>>> and this in main.clj:
>>>
>>> (defn -main [
On Wed, Jan 9, 2013 at 4:27 PM, John Gabriele wrote:
> On Wednesday, January 9, 2013 4:08:50 PM UTC-5, Phil Hagelberg wrote:
>>
>>
>> John Gabriele writes:
>>
>
>> and this in main.clj:
>>
>> (defn -main [& [port]]
>> (let [port (Integer. (or port (System/getenv "PORT") 5000))]
>>
On Wednesday, January 9, 2013 4:39:06 PM UTC-5, John Gabriele wrote:
>
>
> Still though, need to add a :main to project.clj I think.
>
> BTW, tried `:main my-webapp.handler`. `lein uberjar` succeeds, but when I
try to run the jar (via `java -jar
my-webapp-0.1.0-SNAPSHOT-standalone.jar`), it fails
On Wednesday, January 9, 2013 4:27:57 PM UTC-5, John Gabriele wrote:
>
> On Wednesday, January 9, 2013 4:08:50 PM UTC-5, Phil Hagelberg wrote:
>>
>>
>> and this in main.clj:
>>
>> (defn -main [& [port]]
>> (let [port (Integer. (or port (System/getenv "PORT") 5000))]
>> (jetty/r
On Wednesday, January 9, 2013 4:08:50 PM UTC-5, Phil Hagelberg wrote:
>
>
> John Gabriele writes:
>
> > What would I need to do in order to embed jetty so I can create an
> uberjar
> > (`lein uberjar`) and deploy it (I suppose via: `java -jar
> > my-webapp-0.1.0-standalone.jar &`)?
> >
> > Wh
Thanks to technomancy for the very nice basic Clojure webapp template. Very
cool.
On Wed, Jan 9, 2013 at 7:08 PM, Phil Hagelberg wrote:
>
> John Gabriele writes:
>
> > What would I need to do in order to embed jetty so I can create an
> uberjar
> > (`lein uberjar`) and deploy it (I suppose via:
John Gabriele writes:
> What would I need to do in order to embed jetty so I can create an uberjar
> (`lein uberjar`) and deploy it (I suppose via: `java -jar
> my-webapp-0.1.0-standalone.jar &`)?
>
> What would need to be added to / changed in the project.clj?
>
> What exactly should the `-mai
I found this example:
https://gist.github.com/raw/887596/d5804f1e7c550cd4c25e1194c58190e816ceadb0/core.clj
here:
http://www.myclojureadventure.com/2011/03/getting-started-with-ring-and-compojure.html
Just substitute your app-routes for handler and put the (run-jetty) form in
your -main method.
T
On Wednesday, January 9, 2013 1:26:07 PM UTC-5, Phil Hagelberg wrote:
>
>
> I recommend simply embedding jetty and writing a -main function that
> uses run-jetty. Then you can just ship an uberjar out to deploy.
>
Ok. Suppose I've got a stock webapp generated via
lein new compojure my-webap
Josh Kamau writes:
> 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 proper
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
Hi There ;
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 u
16 matches
Mail list logo