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.use.accept.header = false |
---|
14 | grails.mime.types = [ html: ['text/html','application/xhtml+xml'], |
---|
15 | xml: ['text/xml', 'application/xml'], |
---|
16 | text: 'text/plain', |
---|
17 | js: 'text/javascript', |
---|
18 | rss: 'application/rss+xml', |
---|
19 | atom: 'application/atom+xml', |
---|
20 | css: 'text/css', |
---|
21 | csv: 'text/csv', |
---|
22 | all: '*/*', |
---|
23 | json: ['application/json','text/json'], |
---|
24 | form: 'application/x-www-form-urlencoded', |
---|
25 | multipartForm: 'multipart/form-data' |
---|
26 | ] |
---|
27 | // The default codec used to encode data with ${} |
---|
28 | grails.views.default.codec="none" // none, html, base64 |
---|
29 | grails.views.gsp.encoding="UTF-8" |
---|
30 | grails.converters.encoding="UTF-8" |
---|
31 | |
---|
32 | // enabled native2ascii conversion of i18n properties files |
---|
33 | grails.enable.native2ascii = true |
---|
34 | |
---|
35 | // set per-environment serverURL stem for creating absolute links |
---|
36 | environments { |
---|
37 | production { |
---|
38 | grails.serverURL = "http://www.changeme.com" |
---|
39 | } |
---|
40 | development { |
---|
41 | grails.serverURL = "http://localhost:8080/${appName}" |
---|
42 | } |
---|
43 | test { |
---|
44 | grails.serverURL = "http://localhost:8080/${appName}" |
---|
45 | } |
---|
46 | |
---|
47 | } |
---|
48 | |
---|
49 | // log4j configuration |
---|
50 | log4j = { |
---|
51 | // Example of changing the log pattern for the default console |
---|
52 | // appender: |
---|
53 | // |
---|
54 | //appenders { |
---|
55 | // console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n') |
---|
56 | //} |
---|
57 | |
---|
58 | error 'org.codehaus.groovy.grails.web.servlet', // controllers |
---|
59 | 'org.codehaus.groovy.grails.web.pages', // GSP |
---|
60 | 'org.codehaus.groovy.grails.web.sitemesh', // layouts |
---|
61 | 'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping |
---|
62 | 'org.codehaus.groovy.grails.web.mapping', // URL mapping |
---|
63 | 'org.codehaus.groovy.grails.commons', // core / classloading |
---|
64 | 'org.codehaus.groovy.grails.plugins', // plugins |
---|
65 | 'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration |
---|
66 | 'org.springframework', |
---|
67 | 'org.hibernate' |
---|
68 | |
---|
69 | warn 'org.mortbay.log' |
---|
70 | } |
---|
71 | |
---|
72 | |
---|
73 | |
---|