How would you set the run.mode for a Lift application running on Resin?
When deploying on Jetty I included a jetty-web.xml in the war file that set the run.mode property to “production”. Now I need to deploy on Resin.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In your resin.xml or resin.properties, you can set command-line properties. If you’re using one of the most recent Resin 4.0, releases you can use the /etc/resin/resin.properties “jvm_args” property:
If you’re using an older Resin without the resin.properties, you can set the <jvm-arg> inside the <server> or <server-default> tag in the /etc/resin/resin.xml:
When Resin’s watchdog process builds the command line to launch Resin, it uses the <jvm-arg> from the resin.xml as arguments to the child Resin.
It’s possible, by the way, to have server-specific properties as well, either configured by the Resin server id or the cluster. (Or using expressions and control statements in the configuration. Probably not what you need here, though.)