Skip to content
Avoid the mandatory six hours sleep for a free Heroku dyno by balancing between two free dynos!
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.


Type Name Latest commit message Commit time
Failed to load latest commit information.

Heroku Free Balancer

From July 2015 on, Heroku will introduce their new pricing system which forces free apps to sleep at least six hours a day.

With this project you can easily surpass this restriction by using only one paid heroku app for all of your free heroku projects:

  • Just use one paid dyno that is always up to act as a load balancer. Now you can add as many apps that will be always up, because the same code runs on two identical heroku apps.
  • Heroku Free Balancer will forward requests in the morning to your first heroku app and in the afternoon to your second heroku app.

Note: Running this software is against Heroku's terms of service, use at your own risk.


  1. Create two free heroku apps and install your application on it.
    • Deploy exactly the same version of your app, api or website to both heroku apps.
    • If you are using a database, connect the second heroku app to the first heroku apps database. HowTo
  2. Clone this project. Add your two servers to config.json under their application key. You can even add more apps ...
    • Example:
    	"app1": [
    	"app2": [

In this example, your apps will be accessible via this pattern, e.g.:

  1. Create a heroku app that will be always on and never sleeps and install this project on it.


Once you have followed the installation steps, you are ready to go!


  • This project needs to run on min. 7$ (or traditional) dyno. Hence it must never sleep to be working fully.
  • You can add as many apps as you want, but only two child servers are supported right now.


You are very welcome to share, recommend and even contribute to this project.

As always:

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D
You can’t perform that action at this time.