Code Monkey home page Code Monkey logo

Comments (4)

fzaninotto avatar fzaninotto commented on June 30, 2024

I don't know Heroku, and I have no idea whath this error means. You should investigate more together with Heroku to check what the problem is.

from uptime.

jfrux avatar jfrux commented on June 30, 2024

Just for future visitors of this issue...
Heroku apps run under what Heroku calls "Web Dynos", essentially it's a single running process... in your case it would be your "node app.js" of this particular application.

No web processes running means that your node app.js or node process respectively is simply not running...
Whether that be due to the fact that you didn't create a Procfile to tell Heroku what to run... or there is a fatal error in the initial running of the node app.

If you do not have a Procfile in the root of your Uptime app... you should add one that looks like this:

web: node app.js

Add & Commit this change, then do another git push heroku master and wait to see if it deployed.

Once it deploys, try your herokuapp.com url again and if it still errors out... then that means it's failing.

You can run the heroku logs command in your terminal to assist in debugging the problem.

I suspect it's one of the following problems...
1.) The port you're trying to use is 8082 and Heroku is only accepting what is stored in process.env.PORT
To fix this, in app.js... line 110 simply change
server.listen(process.env.PORT || config.server.port || 8082);
(HONESTLY, this is best practice anyway and should probably be merged into Uptime)
This will ensure that process.env.PORT takes precedence. There are a few things with Uptime to consider when changing the port from 8082... and those are probably going to be dependent on what you have your API URL set to in the config.yaml files... I suggest making a production.yaml that reflects the production settings for Heroku...
For instance... part of my production.yaml looks like this:

monitor:
  name:                   origin
  apiUrl:                 'http://appname.herokuapp.com/api' # must be accessible without a proxy
  pollingInterval:        10000      # ten seconds

2.) Your MongoDB connection settings could be invalid...
In this case, do heroku logs and ensure you don't have any fatal errors relating to Mongo...
Or if you find any fatal errors relating to anything else... feel free to post them back here and I'll assist further.

from uptime.

fzaninotto avatar fzaninotto commented on June 30, 2024

calling the node app command prefixed with a custom PORT environment variable is now supported.

from uptime.

gabrielstuff avatar gabrielstuff commented on June 30, 2024

no problem on heroku and appfog. Works nicely.

from uptime.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.