Skip to content

Commit 677b94b

Browse files
author
graeme
committed
fix for GRAILS-2668
git-svn-id: https://svn.codehaus.org/grails/trunk@6809 1cfb16fd-6d17-0410-8ff1-b7e8e1e2867d
1 parent d39323a commit 677b94b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/grails/grails-app/conf/Config.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ grails.enable.native2ascii = true
3434
// set per-environment serverURL stem for creating absolute links
3535
environments {
3636
production {
37-
grails.serverURL = "http://www.yourexcitingapplication.com"
37+
grails.serverURL = "http://www.changeme.com"
3838
}
3939
}
4040

src/groovy/org/codehaus/groovy/grails/plugins/LoggingGrailsPlugin.groovy

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,11 @@ class LoggingGrailsPlugin {
7070
if (log4jConfig) {
7171
def props = log4jConfig.toProperties('log4j')
7272
log.info "Updating Log4j configuration.."
73-
new File("./web-app/WEB-INF/classes/log4j.properties").withOutputStream {out ->
74-
props.store(out, "Grails' Log4j Configuration")
73+
def resourcesDir = System.getProperty(GrailsApplication.PROJECT_RESOURCES_DIR)
74+
if(resourcesDir) {
75+
new File("$resourcesDir/log4j.properties").withOutputStream {out ->
76+
props.store(out, "Grails' Log4j Configuration")
77+
}
7578
}
7679
}
7780
}

0 commit comments

Comments
 (0)