Changeset 948


Ignore:
Timestamp:
Oct 19, 2010, 2:19:43 PM (6 years ago)
Author:
business@…
Message:

corrected errors introduced in #944, metabolomics module in development environment is now expected at port 8183

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/conf/BootStrapStudies.groovy

    r944 r948  
    1212import dbnp.data.Term
    1313import dbnp.data.Ontology
    14 import org.codehaus.groovy.grails.commons.*
    15 import org.codehaus.groovy.grails.commons.ConfigurationHolder as C
     14import org.codehaus.groovy.grails.commons.GrailsApplication
     15import grails.util.GrailsUtil
    1616
    1717class BootStrapStudies {
     
    471471                println ".adding assay references to mouse example study..."
    472472
    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'
    474475
    475476                // Add SAM assay reference
     
    484485                        name: 'Metabolomics module',
    485486                        platform: 'GCMS/LCMS',
    486                         url: samURL
     487                        url: nmcdspURL
    487488                ).with { if (!validate()) { errors.each { println it} } else save()}
    488489
Note: See TracChangeset for help on using the changeset viewer.