Setup Free Uptime Monitoring Service in Heroku

Clone the uptime repository

$ git clone

Get into the directory

$ cd uptime

Login using heroku command line

$ heroku login

Run this command to create the Procfile:

echo "web: node app.js" > Procfile

Commit your changes

$ git add .
$ git commit -m 'Added Procfile'

Create your heroku app

$ heroku create yourappname

Add MongoDB to your app

$ heroku addons:add mongolab

Get your MongoDB connection info

$ heroku config
  === uptimee Config Vars
  MONGOLAB_URI: mongodb://username:[email protected]:port/dbname
  PATH:         bin:node_modules/.bin:/usr/local/bin:/usr/bin:/bin

Use the info you just got and update config/default.yml:

  server:   host:port
  database: dbname
  user:     username
  password: password

I’ve also updated other settings

  apiUrl: 'http://localhost/api' # must be accessible without a proxy
  # apiUrl: 'http://localhost:8021/api' # must be accessible without a proxy

  port: 80
  # port: 8021

  dashboardUrl: 'http://localhost'
  # dashboardUrl: 'http://localhost:8021'

Commit your changes

$ git add .
$ git commit -m 'Updated the configurations'

Push your files

$ git push heroku master

Make sure there’s one dyno running for the web:

$ heroku ps:scale web=1

You can verify it’s running using

$ heroku ps
=== web (1X): `node app.js`
web.1: up 2013/06/28 19:03:30 (~ 3m ago)

Open your app

$ git push heroku master

That’s it, good luck! :)

Written by Mohd Amree

Powered by Jekyll. Get the RSS or the source. Design copied from Sam Vermette.