title: How to add an active spring profile from an environment variable?
body: <p>Until now, I'm setting the following environment variable in my <code>~/.bash_profile</code> :</p>
  
  <pre><code>export SPRING_PROFILES_ACTIVE=local
  </code></pre>
  
  <p>This set my active spring profile. But now, I want to <strong>add</strong> the local profile to other profiles defined in <code>application.properties</code> and not <strong>replace</strong> them.</p>
  
  <p>In the <a href="http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-profiles.html#boot-features-adding-active-profiles" rel="noreferrer">Spring Boot documentation</a>, there is a section about adding active profile, but I see nothing about adding active profile from an environment variable. </p>
  
  <p>I've tried to set the <code>SPRING_PROFILES_INCLUDE</code> environment variable, but this has no effect.</p>
  
  <p>How to do this?</p>
  
  <p>P.S.: I'm using Spring Boot 1.4.2.</p>