How can I run Play framework in HTTPS only in the dev mode?
sbt run -Dhttps.port=9443 -Dhttp.port=disabled
One way to do it is to have two confs file: application.conf
and prod.conf
application.conf
stays the way it is and prod.conf
would look something like
include "application.conf"
https.port = myProdPort
### other params to be overwritten
when launching your application in prod you can do
play run -Dconfig.file=/mypath/prod.conf