- Timestamp:
- Nov 9, 2010, 6:12:29 PM (12 years ago)
- Location:
- trunk/grails-app/conf
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrap.groovy
r1048 r1107 108 108 109 109 println "Registering SAM REST methods" 110 // register methods for accessing SAM's Rest services111 if (grails.util.GrailsUtil.environment == GrailsApplication.ENV_PRODUCTION) {112 CommunicationManager.SAMServerURL = 'http://sam.nmcdsp.org'113 }114 else {115 CommunicationManager.SAMServerURL = 'http://localhost:8182/sam'116 }117 110 CommunicationManager.registerRestWrapperMethodsSAMtoGSCF() 118 111 -
trunk/grails-app/conf/BootStrapStudies.groovy
r1027 r1107 14 14 import org.codehaus.groovy.grails.commons.GrailsApplication 15 15 import grails.util.GrailsUtil 16 import dbnp.rest.common.CommunicationManager 16 17 17 18 class BootStrapStudies { … … 473 474 println ".adding assay references to mouse example study..." 474 475 475 def samURL = GrailsUtil.environment == GrailsApplication.ENV_PRODUCTION ? 'http://sam.nmcdsp.org' : 'http://localhost:8182/sam' 476 def nmcdspURL = GrailsUtil.environment == GrailsApplication.ENV_PRODUCTION ? 'http://nmcdsp.nmcdsp.org' : 'http://localhost:8183/nmcdsp' 476 // sam urls are in config.groovy, where they belong... 477 // if that doesn't work for you, make it work... now you're 478 // breaking the other environments.... 479 //def samURL = GrailsUtil.environment == GrailsApplication.ENV_PRODUCTION ? 'http://sam.nmcdsp.org' : 'http://localhost:8182/sam' 480 //def nmcdspURL = GrailsUtil.environment == GrailsApplication.ENV_PRODUCTION ? 'http://nmcdsp.nmcdsp.org' : 'http://localhost:8183/nmcdsp' 481 def samURL = CommunicationManager.SAMServerURL 482 def nmcdspURL = samURL.replace("sam","metabolomics") 483 477 484 478 485 // Add SAM assay reference … … 557 564 } 558 565 559 560 566 humanStudy.addToAssays(glucoseAssayARef) 561 567 humanStudy.addToAssays(glucoseAssayBRef) -
trunk/grails-app/conf/Config.groovy
r1106 r1107 1 import dbnp.rest.common.CommunicationManager 2 1 3 /** 2 4 * Application Configuration … … 49 51 development { 50 52 grails.serverURL = "http://localhost:8080/${appName}" 53 54 CommunicationManager.SAMServerURL = 'http://localhost:8182/sam' 55 CommunicationManager.registerRestWrapperMethodsGSCFtoSAM() 51 56 } 52 57 ci { 53 58 // used by build script 54 59 grails.serverURL = "http://ci.gscf.nmcdsp.org" 60 61 CommunicationManager.SAMServerURL = 'http://ci.sam.nmcdsp.org' 62 CommunicationManager.registerRestWrapperMethodsGSCFtoSAM() 55 63 } 56 64 test { 57 65 // used by build script 58 66 grails.serverURL = "http://test.gscf.nmcdsp.org" 67 68 CommunicationManager.SAMServerURL = 'http://test.sam.nmcdsp.org' 69 CommunicationManager.registerRestWrapperMethodsGSCFtoSAM() 59 70 } 60 71 production { 61 72 grails.serverURL = "http://www.nmcdsp.org" 73 74 CommunicationManager.SAMServerURL = 'http://sam.nmcdsp.org' 75 CommunicationManager.registerRestWrapperMethodsGSCFtoSAM() 62 76 } 63 77 www { 64 78 // used by build script 65 79 grails.serverURL = "http://www.nmcdsp.org" 80 81 CommunicationManager.SAMServerURL = 'http://sam.nmcdsp.org' 82 CommunicationManager.registerRestWrapperMethodsGSCFtoSAM() 66 83 } 67 84 }
Note: See TracChangeset
for help on using the changeset viewer.