I'm seeing the same exact problem. I ran the
dist task (activator dist), uploaded the ZIP file to my server, unzipped the file, and ran the application as follows:
./myapp/bin/myapp -Dconfig.file=prod.conf
prod.conf looks like this:
import "application"
play.crypto.secret="changeme"
My application starts up just fine and works without error. I also see that it is running in 'Prod' mode in the startup log messages.
I have verified that my application is, in fact, running in 'Prod' mode by logging the following:
LOG.info(play.api.Play.current.mode.toString)
import play.api.Play.current
LOG.info(play.api.Play.isDev.toString)
LOG.info(play.api.Play.isProd.toString)
When I look at the log file, I get the following output for that set of messages:
[info] - com.test.controllers.AccountsController - Prod
[info] - com.test.controllers.AccountsController - false
[info] - com.test.controllers.AccountsController - true
I haven't had a chance to dig through the play framework and test this out yet - we're not to the point of it really mattering yet but may be worth someone looking at...