title: How to deploy separate 2 apps with 1 shared module on Heroku
body: <p>The application I want to run on Heroku consists of 3 items:</p>
  
  <ul>
  <li>a HTML frontend (<em>www.myapp.com</em>)</li>
  <li>a JSON API (<em>api.myapp.com</em>)</li>
  <li>and a common utility class both <em>share</em></li>
  </ul>
  
  <p>Since I use different subdomains (and I can't merge the 2 frontends), I have to create 2 separate Heroku apps, so I also need 2 Procfiles. Right?</p>
  
  <p><strong>Now, how do I tell Heroku which Procfile to use?</strong> (assuming everything is in one repository)</p>
  
  <p>PS: I'm using Scala, Play and sbt.</p>
  
  <p>Thanks in advance!</p>