title: Play - How to use different configuration files for Dev/Prod?
body: <p>I have a project with the following configuration</p>
  
  <ul>
  <li><code>Commons.conf</code></li>
  <li><code>Application.conf</code> for development</li>
  <li><code>Production.conf</code> for production</li>
  </ul>
  
  <p>Both <code>application.conf</code> and <code>production.conf</code> include <code>commons.conf</code></p>
  
  <p>I have to build the application using dist task to generate the zip file, then start it using the <code>projectname.bat</code> file provided. </p>
  
  <p>I added <code>javaOptions ++= Seq("-Dconfig.file=conf/production.conf")</code> in build.sbt but it seem that did not working. I cannot launch the application on command line because i did want it to be done automatically. What's the better way to do separate <code>.conf</code> file configuration for development and production and have <code>dist</code> task taking the production ones?</p>