Skip to content

Commit

Permalink
Changed from absolute path to canonical path. Fixes #11 on Heroku.
Browse files Browse the repository at this point in the history
  • Loading branch information
mraible committed Jun 21, 2012
1 parent 7e9408f commit 3e981ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/Scalate.scala
Expand Up @@ -21,7 +21,7 @@ object Scalate {
val engine = new TemplateEngine val engine = new TemplateEngine
engine.resourceLoader = new FileResourceLoader(Some(Play.getFile("app/views"))) engine.resourceLoader = new FileResourceLoader(Some(Play.getFile("app/views")))
engine.layoutStrategy = new DefaultLayoutStrategy(engine, engine.layoutStrategy = new DefaultLayoutStrategy(engine,
Play.getFile("app/views/layouts/default." + format).getAbsolutePath) Play.getFile("app/views/layouts/default." + format).getCanonicalPath)
engine.classpath = Play.getFile("/tmp/classes").getAbsolutePath engine.classpath = Play.getFile("/tmp/classes").getAbsolutePath
engine.workingDirectory = Play.getFile("tmp") engine.workingDirectory = Play.getFile("tmp")
engine.combinedClassPath = true engine.combinedClassPath = true
Expand Down

0 comments on commit 3e981ab

Please sign in to comment.