Project

General

Profile

Defect #11828 » web.xml

Vincent Mathon, 2012-09-13 11:46

 
1
<!DOCTYPE web-app PUBLIC
2
  "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
3
  "http://java.sun.com/dtd/web-app_2_3.dtd">
4
<web-app>
5

    
6
  <context-param>
7
    <param-name>public.root</param-name>
8
    <param-value>/</param-value>
9
  </context-param>
10

    
11
  <context-param>
12
    <param-name>rails.env</param-name>
13
    <param-value>production</param-value>
14
  </context-param>
15

    
16
  <context-param>
17
    <param-name>jruby.min.runtimes</param-name>
18
    <param-value>2</param-value>
19
  </context-param>
20

    
21
  <context-param>
22
    <param-name>jruby.max.runtimes</param-name>
23
    <param-value>6</param-value>
24
  </context-param>
25

    
26

    
27
  <servlet>
28
    <servlet-name>Rails</servlet-name>
29
    <servlet-class>org.jruby.rack.RackServlet</servlet-class>
30
  </servlet>
31
  
32
  <servlet-mapping>
33
    <servlet-name>Rails</servlet-name>
34
    <url-pattern>/*</url-pattern>
35
  </servlet-mapping>
36
  <listener>
37
    <listener-class>org.jruby.rack.rails.RailsServletContextListener</listener-class>
38
  </listener>
39

    
40

    
41
</web-app>
(3-3/4)