Changeset 1450


Ignore:
Timestamp:
Jan 27, 2011, 5:48:47 PM (13 years ago)
Author:
work@…
Message:
  • changed searchable config
File:
1 edited

Legend:

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

    r1430 r1450  
    3232         * The default is "${user.home}/.grails/projects/${app.name}/searchable-index/${grails.env}"
    3333         */
    34         compassConnection = "${user.home}/.grails/projects/${app.name}/searchable-index/${grails.env}"
     34        compassConnection = "~/.grails/projects/${app.name}/searchable-index/${grails.env}"
    3535
    3636        /**
     
    130130         * which means do a non-forking, otherwise "fork" is recommended
    131131         */
    132         bulkIndexOnStartup = true
     132        bulkIndexOnStartup=true
    133133
    134134        /**
     
    137137        releaseLocksOnStartup = true
    138138}
    139 
    140 // per-environment settings
    141 environments {
    142         development {
    143                 searchable {
    144                         // development is default; inherits from above
    145                         compassConnection = new File(
    146                                 ((new File("/home/tomcat").exists()) ? "/home/tomcat/searchable/gscf-dev/compassindex" : "/tmp/searchable/gscf-dev/compassindex")
    147                         ).absolutePath
    148                 }
    149         }
    150         ci {
    151                 // used by build script
    152                 searchable {
    153                         compassConnection = new File(
    154                                 ((new File("/home/tomcat").exists()) ? "/home/tomcat/searchable/gscf-ci/compassindex" : "/tmp/searchable/gscf-ci/compassindex")
    155                         ).absolutePath
    156                 }
    157         }
    158         test {
    159                 // used by build script
    160                 searchable {
    161                         // disable bulk index on startup
    162                         //bulkIndexOnStartup = false
    163 
    164                         // use faster in-memory index
    165                         //compassConnection = "ram://test-index"
    166 
    167                         compassConnection = new File(
    168                                 ((new File("/home/tomcat").exists()) ? "/home/tomcat/searchable/gscf-test/compassindex" : "/tmp/searchable/gscf-test/compassindex")
    169                         ).absolutePath
    170                 }
    171         }
    172         production {
    173                 searchable {
    174                         // add your production settings here
    175                 }
    176         }
    177         www {
    178                 // used by build script
    179                 searchable {
    180                         // add your production settings here
    181                         compassConnection = new File(
    182                                 ((new File("/home/tomcat").exists()) ? "/home/tomcat/searchable/gscf-www/compassindex" : "/tmp/searchable/gscf-www/compassindex")
    183                         ).absolutePath
    184                 }
    185         }
    186 }
Note: See TracChangeset for help on using the changeset viewer.