Does play have the concept of environments like Rails e.g. test,dev,prod? Config file questions

StackOverflow https://stackoverflow.com/questions/23066405

  •  03-07-2023
  •  | 
  •  

Question

Does play have the concept of environments build into the framework?

For instance in rails there are 3 sections for settings like test, development and production.

If yes, I want to have some branching in my code based on the environment, is this possible?

When I publish to production, can I still manually update my configuration file or does it get baked into the .jar file and I have to rebuild to update it?

Was it helpful?

Solution

Yes it has, you should browse BASIC documentation, especially additional confs section

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top