title: How to manage config properties for different environments in Play
body: <p>In Play Framework, I've noticed that it's possible to separate configuration properties that are used in Dev or Prod mode.</p>
  
  <p>The best in-use example is for baseUrl :</p>
  
  <pre><code># Url-resolving in Jobs
  # ~~~~~~
  # When rendering templates with reverse-url-resoling (@@{..}) in Jobs (which do not have an inbound Http.Request),
  # ie if sending a HtmlMail, Play need to know which url your users use when accessing your app.
  # %test.application.baseUrl=http://localhost:9000/
  
  %dev.application.baseUrl=http://127.0.0.1:9000
  %prod.application.baseUrl=http://www.example.com
  </code></pre>
  
  <p>But I can't make it work for another property:</p>
  
  <pre><code>%dev.application.staticUrl=/public
  %prod.application.staticUrl=http://static.example.com
  </code></pre>
  
  <p>Calling <code>Play.configuration.getProperty("application.staticUrl")</code>, or even <code>Play.configuration.getProperty("%dev.application.staticUrl")</code> (to test) doesn't make it :/</p>
  
  <p>How can I make this work?</p>