[Lift] Re: how / where to set the runmode of a lift application?
Thanks Xavi I believe you can also modify web.xml in some way, but I'm not really sure. that would be useful as I don't have the ability to set properties on the production environment. I wonder if anyone else can confirm? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: how / where to set the runmode of a lift application?
If you are modifying web.xml, doing it via env-entry/ and having it available via JNDI (java:comp/env) [1] seems closest. However, I am not sure that would be available via System.getProperty (). Alternately, try jetty.xml (or jetty-env.xml, if possible) [2][3] to do something like: Call class=java.lang.System name=setProperty Argrun.mode/Arg Argproduction/Arg /Call [1]: http://docs.codehaus.org/display/JETTY/JNDI#JNDI-enventry [2]: http://docs.codehaus.org/display/JETTY/Syntax+Reference [3]: http://docs.codehaus.org/display/JETTY/jetty-env.xml On Sep 13, 1:47 pm, george geo...@mattandgeorge.com wrote: Thanks Xavi I believe you can also modify web.xml in some way, but I'm not really sure. that would be useful as I don't have the ability to set properties on the production environment. I wonder if anyone else can confirm? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---
[Lift] Re: how / where to set the runmode of a lift application?
One way is it to use the run.mode parameter and start your webapp using this command: mvn jetty:run -Drun.mode=production I believe you can also modify web.xml in some way, but I'm not really sure. -Xavi On Sat, Sep 12, 2009 at 5:00 PM, george geo...@mattandgeorge.com wrote: can anyone tell me how I can change the runmode of my application to production? thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Lift group. To post to this group, send email to liftweb@googlegroups.com To unsubscribe from this group, send email to liftweb+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~--~~~~--~~--~--~---