Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use two languages in a Heroku app?

I want to use Node.js as a Share.js server and Ruby for the frontend. As far as I know, Heroku only allows one web-facing process called "web". Does anyone have some experience trying to do something like this?

like image 577
Andres Riofrio Avatar asked Mar 13 '12 18:03

Andres Riofrio


People also ask

Can you use any language on Heroku?

Heroku officially supports a broad range of languages and frameworks: Ruby, Python, Node. js, PHP, Go, Java, Scala, and Clojure. We've created a set of curated, open source Heroku Buildpacks for each of these and integrated them into the platform.

What are the eight officially supported languages on the Heroku platform?

Language Support We built Heroku, our fully managed container-based cloud platform, to make it easy for you to run apps written in a variety of programming languages, including our first-class languages Ruby, Java, PHP, Python, Node, Go, Scala and Clojure.

Does Heroku support backend?

And, as you know, Heroku is a service that lets you get a back-end app up-and-running quickly.

What language specific metrics does Heroku support?

To provide additional insights into memory health we offer optional language-specific runtime metrics. JVM, Go (public beta), Node. js (public beta), and Ruby (public beta) are currently supported.


1 Answers

No, Heroku detects the application type when you push your code to Heroku and it compiles the slug. You'd need to have them as seperate applications with a defined API between the two (not always a bad thing)

UPDATE: You can 'stack' buildpacks these days, eg Ruby + PHP so you could have both executed. See https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app for how to use multiple buildpacks in the same app.

like image 183
John Beynon Avatar answered Sep 28 '22 03:09

John Beynon