Permalink
Browse files

External GSPs

  • Loading branch information...
1 parent e1b300c commit 27594a91b30240f9e07610ee9552b8968a45c080 @pledbrook pledbrook committed Jun 17, 2010
Showing with 6 additions and 4 deletions.
  1. +6 −4 grails.org/grails-app/conf/Config.groovy
@@ -1,10 +1,7 @@
// locations to search for config files that get merged into the main config
// config files can either be Java properties files or ConfigSlurper scripts
-// grails.config.locations = [ "classpath:${appName}-config.properties",
-// "classpath:${appName}-config.groovy",
-// "file:${userHome}/.grails/${appName}-config.properties",
-// "file:${userHome}/.grails/${appName}-config.groovy"]
+grails.config.locations = [ "file:/var/lib/grails/site-config.properties" ]
// if(System.properties["${appName}.config.location"]) {
// grails.config.locations << "file:" + System.properties["${appName}.config.location"]
@@ -36,6 +33,11 @@ grails.views.gsp.encoding="UTF-8"
grails.converters.encoding="UTF-8"
grails.app.context = "/"
+// Load GSPs from external location so that they can easily be updated. The
+// actual location of the views is specified in the site-config.properties
+// file - see the beginning of this file for its location.
+grails.gsp.enable.reload = true
+
// enabled native2ascii conversion of i18n properties files
grails.enable.native2ascii = true

0 comments on commit 27594a9

Please sign in to comment.