Play framework 2 development configuration

前端 未结 2 1081
抹茶落季
抹茶落季 2021-02-15 22:37

How I can setup different configuration for development and production mode in Play 2 application?

I\'ve try to use JVM arguments on application start in development mod

2条回答
  •  你的背包
    2021-02-15 23:26

    Even better would be to use the standard application.conf file for you development file and use a specific file for your other environments.

    Then, using @Biesior's suggestion, you can use in dev :

    play start 
    

    And for the other environments, Heroku for example, use the other files :

    play start -Dconfig.file=conf/application.heroku.conf
    

提交回复
热议问题