Changeset 851
- Timestamp:
- Aug 27, 2010, 3:33:24 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/BootStrap.groovy
r850 r851 47 47 48 48 if (dbnp.user.User.count() == 0) { 49 50 49 println "Adding example user..." 51 50 … … 102 101 103 102 // If there are no templates yet in the database 104 if ( true ||Template.count() == 0) {103 if (Template.count() == 0) { 105 104 println "No templates in the current database."; 106 105 107 106 // If in development or test mode, add the ontologies manually to the database 108 107 // without contacting the BioPortal website, to avoid annoying hiccups when the server is busy 109 if ( true ||grails.util.GrailsUtil.environment != GrailsApplication.ENV_PRODUCTION) {108 if (grails.util.GrailsUtil.environment != GrailsApplication.ENV_PRODUCTION) { 110 109 println "Adding ontology descriptors" 111 110 BootStrapTemplates.initTemplateOntologies() … … 116 115 117 116 // If in development mode and no studies are present, add example studies 118 if ( true ||Study.count() == 0 && grails.util.GrailsUtil.environment == GrailsApplication.ENV_PRODUCTION) {117 if (Study.count() == 0 && grails.util.GrailsUtil.environment == GrailsApplication.ENV_PRODUCTION) { 119 118 // check if special file is present in project directory 120 119 if ((new File(System.properties['user.dir']+"/.skip-studies").exists())) {
Note: See TracChangeset
for help on using the changeset viewer.