root/trunk/grails-app/conf/Config.groovy @ 189

Revision 189, 4.9 KB (checked in by work@…, 3 years ago)

- added demo configuration

Line 
1import dbnp.rest.common.CommunicationManager
2
3// locations to search for config files that get merged into the main config
4// config files can either be Java properties files or ConfigSlurper scripts
5
6// grails.config.locations = [ "classpath:${appName}-config.properties",
7//                             "classpath:${appName}-config.groovy",
8//                             "file:${userHome}/.grails/${appName}-config.properties",
9//                             "file:${userHome}/.grails/${appName}-config.groovy"]
10
11// if(System.properties["${appName}.config.location"]) {
12//    grails.config.locations << "file:" + System.properties["${appName}.config.location"]
13// }
14
15grails.project.groupId = appName // change this to alter the default package name and Maven publishing destination
16grails.mime.file.extensions = true // enables the parsing of file extensions from URLs into the request format
17grails.mime.use.accept.header = false
18grails.mime.types = [html: ['text/html', 'application/xhtml+xml'],
19        xml: ['text/xml', 'application/xml'],
20        text: 'text/plain',
21        js: 'text/javascript',
22        rss: 'application/rss+xml',
23        atom: 'application/atom+xml',
24        css: 'text/css',
25        csv: 'text/csv',
26        all: '*/*',
27        json: ['application/json', 'text/json'],
28        form: 'application/x-www-form-urlencoded',
29        multipartForm: 'multipart/form-data'
30]
31// The default codec used to encode data with ${}
32grails.views.default.codec = "none" // none, html, base64
33grails.views.gsp.encoding = "UTF-8"
34grails.converters.encoding = "UTF-8"
35// enable Sitemesh preprocessing of GSP pages
36grails.views.gsp.sitemesh.preprocess = true
37// scaffolding templates configuration
38grails.scaffolding.templates.domainSuffix = 'Instance'
39
40// Set to false to use the new Grails 1.2 JSONBuilder in the render method
41grails.json.legacy.builder = false
42// enabled native2ascii conversion of i18n properties files
43grails.enable.native2ascii = true
44// whether to install the java.util.logging bridge for sl4j. Disable fo AppEngine!
45grails.logging.jul.usebridge = true
46// packages to include in Spring bean scanning
47grails.spring.bean.packages = []
48
49// set per-environment serverURL stem for creating absolute links
50environments {
51        development {
52                grails.serverURL = "http://localhost:8182/sam"
53
54                // Register the methods that provide the Rest services of GSCF to SAM
55                CommunicationManager.GSCFServerURL = 'http://localhost:8080/gscf'
56                CommunicationManager.SAMServerURL = 'http://localhost:8182/sam'
57        }
58        ci {
59                // used by build script
60                grails.serverURL = "http://ci.sam.nmcdsp.org"
61
62                // Register the methods that provide the Rest services of GSCF to SAM
63                CommunicationManager.GSCFServerURL = 'http://ci.gscf.nmcdsp.org'
64                CommunicationManager.SAMServerURL = 'http://ci.sam.nmcdsp.org'
65        }
66        test {
67                // used by build script
68                grails.serverURL = "http://test.sam.nmcdsp.org"
69
70                // Register the methods that provide the Rest services of GSCF to SAM
71                CommunicationManager.GSCFServerURL = 'http://test.gscf.nmcdsp.org'
72                CommunicationManager.SAMServerURL = 'http://test.sam.nmcdsp.org'
73        }
74        nbx14 {
75                // used by build script
76                grails.serverURL = "http://sam.nbx14.osx.eu"
77
78                // Register the methods that provide the Rest services of GSCF to SAM
79                CommunicationManager.GSCFServerURL = 'http://nbx14.osx.eu'
80                CommunicationManager.SAMServerURL = 'http://sam.nbx14.osx.eu'
81        }
82        demo {
83                // used by build script
84                grails.serverURL = "http://demo.sam.nbx14.osx.eu"
85
86                // Register the methods that provide the Rest services of GSCF to SAM
87                CommunicationManager.GSCFServerURL = 'http://demo.nbx14.osx.eu'
88                CommunicationManager.SAMServerURL = 'http://demo.sam.nbx14.osx.eu'
89        }
90        production {
91                grails.serverURL = "http://sam.nmcdsp.org"
92
93                // Register the methods that provide the Rest services of GSCF to SAM
94                CommunicationManager.GSCFServerURL = 'http://gscf.nmcdsp.org'
95                CommunicationManager.SAMServerURL = 'http://sam.nmcdsp.org'
96        }
97        www {
98                // used by build script
99                grails.serverURL = "http://sam.nmcdsp.org"
100
101                // Register the methods that provide the Rest services of GSCF to SAM
102                CommunicationManager.GSCFServerURL = 'http://gscf.nmcdsp.org'
103                CommunicationManager.SAMServerURL = 'http://sam.nmcdsp.org'
104        }
105}
106
107// log4j configuration
108log4j = {
109        // Example of changing the log pattern for the default console
110        // appender:
111        //
112        //appenders {
113        //    console name:'stdout', layout:pattern(conversionPattern: '%c{2} %m%n')
114        //}
115
116
117        error 'org.codehaus.groovy.grails.web.servlet',  //  controllers
118                'org.codehaus.groovy.grails.web.pages', //  GSP
119                'org.codehaus.groovy.grails.web.sitemesh', //  layouts
120                'org.codehaus.groovy.grails.web.mapping.filter', // URL mapping
121                'org.codehaus.groovy.grails.web.mapping', // URL mapping
122                'org.codehaus.groovy.grails.commons', // core / classloading
123                'org.codehaus.groovy.grails.plugins', // plugins
124                'org.codehaus.groovy.grails.orm.hibernate', // hibernate integration
125                'org.springframework',
126                'org.hibernate',
127                'net.sf.ehcache.hibernate'
128
129        warn 'org.mortbay.log'
130}
131
132// jquery plugin
133grails.views.javascript.library = "jquery"
Note: See TracBrowser for help on using the browser.