1 | // locations to search for config files that get merged into the main config |
---|
2 | // config files can either be Java properties files or ConfigSlurper scripts |
---|
3 | |
---|
4 | // grails.config.locations = [ "classpath:${appName}-config.properties", |
---|
5 | // "classpath:${appName}-config.groovy", |
---|
6 | // "file:${userHome}/.grails/${appName}-config.properties", |
---|
7 | // "file:${userHome}/.grails/${appName}-config.groovy"] |
---|
8 | |
---|
9 | // if(System.properties["${appName}.config.location"]) { |
---|
10 | // grails.config.locations << "file:" + System.properties["${appName}.config.location"] |
---|
11 | // } |
---|
12 | grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format |
---|
13 | grails.mime.types = [ html: ['text/html','application/xhtml+xml'], |
---|
14 | xml: ['text/xml', 'application/xml'], |
---|
15 | text: 'text-plain', |
---|
16 | js: 'text/javascript', |
---|
17 | rss: 'application/rss+xml', |
---|
18 | atom: 'application/atom+xml', |
---|
19 | css: 'text/css', |
---|
20 | csv: 'text/csv', |
---|
21 | all: '*/*', |
---|
22 | json: ['application/json','text/json'], |
---|
23 | form: 'application/x-www-form-urlencoded', |
---|
24 | multipartForm: 'multipart/form-data' |
---|
25 | ] |
---|
26 | // The default codec used to encode data with ${} |
---|
27 | grails.views.default.codec="none" // none, html, base64 |
---|
28 | grails.views.gsp.encoding="UTF-8" |
---|
29 | grails.converters.encoding="UTF-8" |
---|
30 | |
---|
31 | // enabled native2ascii conversion of i18n properties files |
---|
32 | grails.enable.native2ascii = true |
---|
33 | |
---|
34 | // set per-environment serverURL stem for creating absolute links |
---|
35 | environments { |
---|
36 | production { |
---|
37 | grails.serverURL = "http://www.changeme.com" |
---|
38 | } |
---|
39 | } |
---|
40 | |
---|
41 | // log4j configuration |
---|
42 | log4j { |
---|
43 | appender.stdout = "org.apache.log4j.ConsoleAppender" |
---|
44 | appender.'stdout.layout'="org.apache.log4j.PatternLayout" |
---|
45 | appender.'stdout.layout.ConversionPattern'='[%r] %c{2} %m%n' |
---|
46 | appender.stacktraceLog = "org.apache.log4j.FileAppender" |
---|
47 | appender.'stacktraceLog.layout'="org.apache.log4j.PatternLayout" |
---|
48 | appender.'stacktraceLog.layout.ConversionPattern'='[%r] %c{2} %m%n' |
---|
49 | appender.'stacktraceLog.File'="stacktrace.log" |
---|
50 | rootLogger="error,stdout" |
---|
51 | logger { |
---|
52 | grails="error" |
---|
53 | StackTrace="error,stacktraceLog" |
---|
54 | org { |
---|
55 | codehaus.groovy.grails.web.servlet="error" // controllers |
---|
56 | codehaus.groovy.grails.web.pages="error" // GSP |
---|
57 | codehaus.groovy.grails.web.sitemesh="error" // layouts |
---|
58 | codehaus.groovy.grails."web.mapping.filter"="error" // URL mapping |
---|
59 | codehaus.groovy.grails."web.mapping"="error" // URL mapping |
---|
60 | codehaus.groovy.grails.commons="info" // core / classloading |
---|
61 | codehaus.groovy.grails.plugins="error" // plugins |
---|
62 | codehaus.groovy.grails.orm.hibernate="error" // hibernate integration |
---|
63 | springframework="off" |
---|
64 | hibernate="off" |
---|
65 | } |
---|
66 | } |
---|
67 | additivity.StackTrace=false |
---|
68 | } |
---|
69 | |
---|
70 | |
---|