Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I currently have a goal of creating a sort of chat website. I just finished trying with PHP and long polling, which hit a resource limit on my webhost's server. I was told that I should use Node.js and that it can be hosted with Heroku.

I honestly have very little understanding of what Node.js or Heroku are. From what I've been told and have read after looking this up is that you can install Node.js and run apps online with it. The tutorial here: goes over installing and executing a script on heroku with Node.js. I have NO experience with command line, and wouldn't be able to do anything but copy the exact commands in that tutorial. I also don't understand when he accesses the script with localhost if the app is supposed to be on Heroku.

Can anyone explain what Heroku is, and provide some resources on how to use it? How can I work my way up to knowing how to use it?

share|improve this question
Heroku is a branded server product (and company), it's main feature being ease of use for Ruby and Node.js developers (and more recently Java & Clojure), the best place to get help with it is to go to and then start asking questions ( about things you don't understand. - Rinse and repeat for – Slomojo Sep 27 '11 at 23:28
@Slomojo Why did you make this a comment and not an answer? It obviously answers the question. – ntownsend Sep 30 '11 at 19:11
@ntownsend - TBH I expected the question to get closed and moved somewhere else. – Slomojo Oct 4 '11 at 0:23
up vote 4 down vote accepted

As for running a chat server, the chat example for can be up and running in about 5 minutes. Basically, copy-paste and you have real time chat.

You should know that Heroku does not support Websockets at this time. will revert to xhr-polling or other techniques which really should work fine for chat, but it's not quite real time when using Heroku.

Apparently I even did it to test at one point in the past.

share|improve this answer

Heroku is a company and eponymous server product, whose main feature is ease of use for Ruby developers (they've more recently added Node.js, Java & Clojure support)

The best place to get help with it is to go to and then start asking questions about things you don't understand. (try asking very specific question on too.) - Rinse and repeat for

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.