Changeset 1450
- Timestamp:
- Jan 27, 2011, 5:48:47 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/grails-app/conf/Searchable.groovy
r1430 r1450 32 32 * The default is "${user.home}/.grails/projects/${app.name}/searchable-index/${grails.env}" 33 33 */ 34 compassConnection = " ${user.home}/.grails/projects/${app.name}/searchable-index/${grails.env}"34 compassConnection = "~/.grails/projects/${app.name}/searchable-index/${grails.env}" 35 35 36 36 /** … … 130 130 * which means do a non-forking, otherwise "fork" is recommended 131 131 */ 132 bulkIndexOnStartup =true132 bulkIndexOnStartup=true 133 133 134 134 /** … … 137 137 releaseLocksOnStartup = true 138 138 } 139 140 // per-environment settings141 environments {142 development {143 searchable {144 // development is default; inherits from above145 compassConnection = new File(146 ((new File("/home/tomcat").exists()) ? "/home/tomcat/searchable/gscf-dev/compassindex" : "/tmp/searchable/gscf-dev/compassindex")147 ).absolutePath148 }149 }150 ci {151 // used by build script152 searchable {153 compassConnection = new File(154 ((new File("/home/tomcat").exists()) ? "/home/tomcat/searchable/gscf-ci/compassindex" : "/tmp/searchable/gscf-ci/compassindex")155 ).absolutePath156 }157 }158 test {159 // used by build script160 searchable {161 // disable bulk index on startup162 //bulkIndexOnStartup = false163 164 // use faster in-memory index165 //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 ).absolutePath170 }171 }172 production {173 searchable {174 // add your production settings here175 }176 }177 www {178 // used by build script179 searchable {180 // add your production settings here181 compassConnection = new File(182 ((new File("/home/tomcat").exists()) ? "/home/tomcat/searchable/gscf-www/compassindex" : "/tmp/searchable/gscf-www/compassindex")183 ).absolutePath184 }185 }186 }
Note: See TracChangeset
for help on using the changeset viewer.