title: Can I deploy multiple frameworks for an application on heroku?
body: <p>I read that heroku is a polygot platform: <a href="https://devcenter.heroku.com/articles/cedar#polyglot-platform" rel="nofollow">https://devcenter.heroku.com/articles/cedar#polyglot-platform</a></p>
  
  <p>Does it provide advanced routing such that I could do this:</p>
  
  <pre><code>sample1.heroku.com                   // rails
   www.customdomain.com
  
  sample1.heroku.com/another-path/     // node.js
   www.customdomain.com/another-path
  
  sample2.heroku.com/api/             // java
   api.customdomain.com/
  </code></pre>
  
  <p>So the above is for a single application that uses:</p>
  
  <ol>
  <li>rails</li>
  <li>nodejs</li>
  <li>java</li>
  </ol>
  
  <p>Also, each framework runs at a particular path, and the java works on a subdomain.</p>
  
  <p>Is this possible with heroku?</p>