Ok, so I really did not find a solution for this, but I found a workaround. This is nowhere in the documentation of the Play Framework 2.x (for now), so I suppose I will put it here if someone gets stuck:
Putting applyEvolutions.default=true in application.conf WORKS and do an automatic database change. The command line -DapplyEvolutions.default=true does NOT work and is ignored for unknown reasons.
Putting http.port=80 in application.conf does NOT work . The command line -Dhttp.port=80 also does NOT WORK to set the port number to run.
So, to set the port number, use this command:
play "start 80" or play "run 80" (use double quotes exactly as shown).
For some reason, when the port command is written in exactly the same way as above, in double quotes, the port number to start is set correctly.
This is not found in infrastructure documentation anywhere. I would create another migration request to add it, but the last problem I solved for this structure (database encryption) was outlined as a โlimited use case in a nicheโ, and thus the documentation update was refused . I can still try.
Hope this helps someone.
source share