Changeset 616 for trunk/grails-app/conf
- Timestamp:
- Jun 25, 2010, 12:01:07 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrap.groovy
r571 r616 17 17 */ 18 18 class BootStrap { 19 def init = { servletContext ->19 def init = { servletContext -> 20 20 // define timezone 21 21 System.setProperty('user.timezone', 'CET') 22 22 23 // we could also check if we are in development by GrailsUtil.environment == GrailsApplication.ENV_DEVELOPMENT 24 if (Study.count() == 0 && false) { 25 println ".development bootstrapping..."; 23 // production bootstrapping 24 if (GrailsUtil.environment == "production" && Template.count() == 0) { 25 println ".production bootstrapping..." 26 27 // TODO, initial application templates, terms and ontologies 28 } 29 30 // development bootstrapping 31 if (GrailsUtil.environment == GrailsApplication.ENV_DEVELOPMENT && Study.count() == 0 && false) { 32 println ".development bootstrapping..." 26 33 27 34 // add Subject>species ontology
Note: See TracChangeset
for help on using the changeset viewer.