As a caution, you can technically install two languages โโin one application, but I'm not sure if they will run them at the same time. I made this buildpack to combine NodeJS and PHP (so that I can run Grunt at compile time):
https://github.com/gcpantazis/heroku-buildpack-php-gruntjs
Detecting a language is usually pretty dumb; it will search for a file pointing to the language, i.e. index.php or rakefile. You will need to change the detection box for your code to pass.
Update:
Think better using https://github.com/ddollar/heroku-buildpack-multi ; this will allow you to install buildpacks sequentially. Depending on your application, you may need to find language packs that do not have validation steps, i.e. Checking the package.json
file in a NodeJS application.
source share