Play gotchas

Activator command

from > 2.x.x
activator command replaces the play command. so you would run like,


Accessing some play elements such as config variables from play application.conf.

For this to work you need to have a play static application running with the below line of code
new StaticApplication(new"."))

Play environment setup and running:

You would have to overwrite the config loader in Global.scala file to load config file based on the environment passed in.

`activator run -Denvironment=dev -Dhttp.port=9001