Changeset 504
- Timestamp:
- Apr 22, 2010, 3:15:10 PM (15 years ago)
- Location:
- trunk/grails-app/conf
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrap.groovy
r270 r504 1 import grails.util.GrailsUtil2 3 1 class BootStrap 4 2 { … … 7 5 def init = { servletContext -> 8 6 9 log.info "Application starting." 10 log.debug "GrailsUtil.environment = ${GrailsUtil.environment}" 11 12 switch (GrailsUtil.environment) 13 { 14 case "development": 15 createDataService.ensureSystemAndAdminAccess() 16 createDataService.createBaseData() 17 createDataService.createDemoData() 18 break 19 case "test": 20 createDataService.ensureSystemAndAdminAccess() 21 break 22 case "production": 23 createDataService.ensureSystemAndAdminAccess() 24 break 7 /** Environment specific settings. 8 * Note that (circa grails-1.2.2) if running "test test-app integration:" from "grails interactive" 9 * the correct environment is applied for DataSource and Config, 10 * but for BootStrap (and others) the development environment is applied. 11 */ 12 environments { 13 development { 14 log.info "Starting DEVELOPMENT bootstrap." 15 createDataService.ensureSystemAndAdminAccess() 16 createDataService.createBaseData() 17 createDataService.createDemoData() 18 } 19 test { 20 log.info "Starting TEST bootstrap." 21 createDataService.ensureSystemAndAdminAccess() 22 } 23 production { 24 log.info "Starting PRODUCTION bootstrap." 25 createDataService.ensureSystemAndAdminAccess() 26 } 25 27 } 26 28 27 } 29 } // init 28 30 29 31 def destroy = { 30 32 } 31 } 33 34 } // end class -
trunk/grails-app/conf/DataSource.groovy
r449 r504 24 24 password = "" 25 25 dbCreate = "create-drop" 26 url = "jdbc:hsqldb:mem:devD B"26 url = "jdbc:hsqldb:mem:devDb" 27 27 /** MySQL */ 28 28 // driverClassName = "com.mysql.jdbc.Driver" … … 57 57 // password = "" 58 58 // dbCreate = "create-drop" 59 // url = "jdbc:hsqldb:mem:devD B"59 // url = "jdbc:hsqldb:mem:devDb" 60 60 /** HSQLDB - In file */ 61 61 // driverClassName = "org.hsqldb.jdbcDriver"
Note: See TracChangeset
for help on using the changeset viewer.