Changeset 851


Ignore:
Timestamp:
Aug 27, 2010, 3:33:24 PM (13 years ago)
Author:
duh
Message:
removed the "if (true
" parts from the bootstrap
File:
1 edited

Legend:

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

    r850 r851  
    4747
    4848                if (dbnp.user.User.count() == 0) {
    49 
    5049                        println "Adding example user..."
    5150
     
    102101
    103102                // If there are no templates yet in the database
    104                 if (true || Template.count() == 0) {
     103                if (Template.count() == 0) {
    105104                        println "No templates in the current database.";
    106105
    107106                        // If in development or test mode, add the ontologies manually to the database
    108107                        // 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) {
    110109                                println "Adding ontology descriptors"
    111110                                BootStrapTemplates.initTemplateOntologies()
     
    116115
    117116                        // 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) {
    119118                                // check if special file is present in project directory
    120119                                if ((new File(System.properties['user.dir']+"/.skip-studies").exists())) {
Note: See TracChangeset for help on using the changeset viewer.