Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8375173
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T15:06:22+00:00 2026-06-09T15:06:22+00:00

Here is my setup: hosted Cloud9 IDE Heroku Hosting Environment Desire to learn node.js

  • 0

Here is my setup:

  • hosted Cloud9 IDE
  • Heroku Hosting Environment
  • Desire to learn node.js

I am working through the tutorial found at http://www.nodebeginner.org

Manuel shows how to create a custom module called server.js:

var http = require("http");

function start() {
  function onRequest(request, response) {
    console.log("Request received.");
response.writeHead(200, {"Content-Type": "text/plain"});
response.write("Hello World");
response.end();
}

http.createServer(onRequest).listen(8888);
console.log("Server has started.");
}

exports.start = start;

He shows how to reference this custom module from index.js:

var server = require("./server");
server.start();

I tried running the index.js in the cloud9 ide but it hangs or gives me a Service Temporarily Unavailable error. I thought it might be an issue with cloud9, so I pushed it to my Heroku instance. From Heroku, I receive an Application Error page. The Heroku logs show:

←[33m2012-08-13T19:03:19+00:00 heroku[slugc]:←[0m Slug compilation finished
←[35m2012-08-13T19:03:21+00:00 heroku[web.1]:←[0m Starting process with command `node index.js`
←[35m2012-08-13T19:03:21+00:00 app[web.1]:←[0m
←[35m2012-08-13T19:03:21+00:00 app[web.1]:←[0m     at Object.<anonymous> (/app/index.js:1:70)
←[35m2012-08-13T19:03:21+00:00 app[web.1]:←[0m     at Module._compile (module.js:446:26)
←[35m2012-08-13T19:03:21+00:00 app[web.1]:←[0m     at Object..js (module.js:464:10)
←[35m2012-08-13T19:03:21+00:00 app[web.1]:←[0m Error: require.paths is removed. Use node_modules folders, or the NODE_PATH environment variable instead.
←[35m2012-08-13T19:03:21+00:00 app[web.1]:←[0m     at Function.<anonymous> (module.js:383:11)
←[35m2012-08-13T19:03:21+00:00 app[web.1]:←[0m     at Module.load (module.js:353:31)
←[35m2012-08-13T19:03:21+00:00 app[web.1]:←[0m     at Function._load (module.js:311:12)
←[35m2012-08-13T19:03:21+00:00 app[web.1]:←[0m     at Array.0 (module.js:484:10)
←[35m2012-08-13T19:03:21+00:00 app[web.1]:←[0m     at EventEmitter._tickCallback(node.js:190:38)
←[35m2012-08-13T19:03:23+00:00 heroku[web.1]:←[0m Process exited with status 1
←[35m2012-08-13T19:03:23+00:00 heroku[web.1]:←[0m State changed from starting to crashed

I googled it and found questions relating to a local cloud9 install, but nothing on the hosted version. I also tried moving server.js from the root to the node_modules folder, but can’t seem to get it to work. My first step was to get the standard ‘Hello World’ app up and running to prove out the debug mode and the heroku deployment and it all worked fine. It’s the custom module I am having difficulties with.

Any help is appreciated. Thanks!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T15:06:24+00:00Added an answer on June 9, 2026 at 3:06 pm

    The reason it doesn’t run on Cloud9 is because you listen to port 8888 instead of process.env.PORT.

    The heroku error that you show is a different kind of error which complains about the removal of the require.paths function, which was removed in node 0.4.x. So that’s something completely different. Are you sure you are watching the right log file? Changing the port to process.env.PORT there should work anyway though.

    If you want to see the codez, I put them on a Cloud9 project: webserver.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

here's the setup for the project. I have a WCF Service that is hosted
here's my setup: I have an MVC3 site hosted with a www subdomain (e.g.,
Here's my setup: I've got one a 'master' git repository with a hosted service.
I need to set up an amazon server. I always here setup ubuntu on
I have a page that i have been starting to setup here http://www.brandybrowauto.com/NEW.html that
Here is my setup: I have modeled my application after the SportsStore in Pro
Here is my setup, it seems I am not binding the data correctly. The
Here's the setup. I have a custom UIScrollView as a subview of PrimeView. The
Here's the setup. I have web site which is essentially a simple CMS. Here
Here's the setup : http://jsfiddle.net/AndyMP/rVrjY/ What I'd like to achieve is a shadow on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.