Is there any way to substitute environment variables in playframework's application.conf?

后端 未结 3 1617
生来不讨喜
生来不讨喜 2021-02-05 15:30

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.         


        
3条回答
  •  -上瘾入骨i
    2021-02-05 16:11

    ${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.

提交回复
热议问题