Changeset 948
- Timestamp:
- Oct 19, 2010, 2:19:43 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrapStudies.groovy
r944 r948 12 12 import dbnp.data.Term 13 13 import dbnp.data.Ontology 14 import org.codehaus.groovy.grails.commons. *15 import org.codehaus.groovy.grails.commons.ConfigurationHolder as C14 import org.codehaus.groovy.grails.commons.GrailsApplication 15 import grails.util.GrailsUtil 16 16 17 17 class BootStrapStudies { … … 471 471 println ".adding assay references to mouse example study..." 472 472 473 def samURL = GrailsApplication.ENV_TEST ? 'http://localhost:8182/sam' : 'http://sam.nmcdsp.org' 473 def samURL = GrailsUtil.environment == GrailsApplication.ENV_PRODUCTION ? 'http://sam.nmcdsp.org' : 'http://localhost:8182/sam' 474 def nmcdspURL = GrailsUtil.environment == GrailsApplication.ENV_PRODUCTION ? 'http://nmcdsp.nmcdsp.org' : 'http://localhost:8183/nmcdsp' 474 475 475 476 // Add SAM assay reference … … 484 485 name: 'Metabolomics module', 485 486 platform: 'GCMS/LCMS', 486 url: samURL487 url: nmcdspURL 487 488 ).with { if (!validate()) { errors.each { println it} } else save()} 488 489
Note: See TracChangeset
for help on using the changeset viewer.