Changeset 327


Ignore:
Timestamp:
Apr 6, 2010, 12:37:22 PM (9 years ago)
Author:
duh
Message:
  • changed searchable config
File:
1 edited

Legend:

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

    r323 r327  
    3131     *
    3232     * The default is "${user.home}/.grails/projects/${app.name}/searchable-index/${grails.env}"
    33          *
    34          * Checks if user.home points to /dev/null (which happens when deploying on tomcat) and set
    35          * it to /home/tomcat if it is the case. Otherwise just use the user.home
    3633     */
    3734    compassConnection = new File(
    38                 sprintf("%s/.grails/projects/%s/searchable-index/%s",
    39                         ((user.home == "/dev/null") ? "/home/tomcat" : user.home),
    40                         appName,
    41                         grailsEnv
    42                 )
     35                ((new File("/home/tomcat").exists()) ? "/home/tomcat/gscf/compassindex" : "/tmp/gscf/compassindex")
    4336    ).absolutePath
    4437
Note: See TracChangeset for help on using the changeset viewer.