Is there any way to use environment variables in the play! application.conf file? Something like this:
%prod.db.url=${env.DATABASE_JDBC_URL}
%prod.db.driver=org.postgresql.Driver
%prod.jpa.ddl=validate
I don’t want to hardcode the URL in my application.conf because it contains credentials that the developer should not have access to.
${ENV_VARIABLE_KEY}does resolve any variables that are set in your environment. you don’t have to specify “env.” prefix unless it’s part of your key.