diff --git a/harness/build.go b/harness/build.go index 397b76e..d2b92d7 100755 --- a/harness/build.go +++ b/harness/build.go @@ -39,7 +39,7 @@ func Build(buildFlags ...string) (app *App, compileError *revel.Error) { // Add the db.import to the import paths. if dbImportPath, found := revel.Config.String("db.import"); found { - sourceInfo.InitImportPaths = append(sourceInfo.InitImportPaths, dbImportPath) + sourceInfo.InitImportPaths = append(sourceInfo.InitImportPaths, strings.Split(dbImportPath,",")...) } // Generate two source files. diff --git a/revel/skeleton/conf/app.conf.template b/revel/skeleton/conf/app.conf.template index 55665c6..2b57895 100644 --- a/revel/skeleton/conf/app.conf.template +++ b/revel/skeleton/conf/app.conf.template @@ -95,7 +95,7 @@ i18n.default_language = en # Module to serve static content such as CSS, JavaScript and Media files # Allows Routes like this: # `Static.ServeModule("modulename","public")` -module.static=github.com/revel/modules/static +module.static = github.com/revel/modules/static @@ -172,6 +172,7 @@ module.testrunner = github.com/revel/modules/testrunner # Log to file. log.all.filter.module.app = stdout # Log all loggers for the application to the stdout log.error.nfilter.module.app = stderr # Everything else that logs an error to stderr +log.crit.output = stderr # Everything that logs something as critical goes to this # Revel request access log # Access log line format: @@ -196,8 +197,9 @@ watch = false module.testrunner = -log.warn.output = log/%(app.name)s.log # Log all loggers for the application to the stdout -log.error.output = log/%(app.name)s.log # Log all errors to the stdout +log.warn.output = log/%(app.name)-warn.json # Log all warn messages to file +log.error.output = log/%(app.name)-error.json # Log all errors to file +log.crit.output = log/%(app.name)-critical.json # Log all critical to file # Revel request access log (json format) # Example: