playframework 2.0 - Play Global object (GlobalSettings) not being executed -
i ran application on server, custom config file specified on command line using:
-dconfig.file=app.conf but when tried copy custom config file local machine , use there, passing -dconfig.file run, strange errors started appear. traced global object's onstart method not being executed @ all. why happening?
for reason, typesafe config library silently failing load line in custom config file
include "application" but sbt run - worked when running application standalone on server.
therefore application.global=global.global line wasn't being read in file, play couldn't find global object, , silently fell empty global object nothing.
changing include line specify absolute file path application.conf fixed problem.
Comments
Post a Comment