---
title: "Discussion on \"How to stop Your Heroku app from sleeping😴 (FREE)\" | Hashnode"
description: "Discussion on \"How to stop Your Heroku app from sleeping😴 (FREE)\". Apps deployed on heroku sleeps after 30 minutes. You can fix this through kaffeine shots to your app"
url: "https://hashnode.com/posts/how-to-stop-your-heroku-app-from-sleeping-free/6083c6edff5fc65284a7943b"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to stop Your Heroku app from sleeping😴 (FREE)](https://blog.hrithwik.dev/how-to-stop-your-heroku-app-from-sleeping-free?utm_source=hashnode&utm_medium=feed)

Apps deployed on heroku sleeps after 30 minutes. You can fix this through kaffeine shots to your app

Apr 24, 2021 · 2 min read · blog.hrithwik.dev  
Read the article

-   [#heroku](https://hashnode.com/tag/heroku)
-   [#hashnode](https://hashnode.com/tag/hashnode)
-   [#nodejs](https://hashnode.com/tag/nodejs)

## Written by

[Hrithwik Bharadwaj](https://hashnode.com/@hrithwik)

@hrithwik · Bangalore, India

  
[View profile](https://hashnode.com/@hrithwik)

Software Engineer ,Tech Enthusiast, Violinist

I am a full stack developer from Mysore India. I am here to share as much information I know with the world in the most articulate way.

## Responses 2

Markdown supported · ⌘↵ to post

[Pankaj Tanwar](https://hashnode.com/@pankajtanwar)

[Apr 25, 2021](https://hashnode.com/posts/how-to-stop-your-heroku-app-from-sleeping-free/6083c6edff5fc65284a7943b/comment/6084d12c70758d2ac1546090)

Nice writeup. I would recommend, rather then relying on a third party service, there are a few possible methods you can try -

1.  Write a Cron job on server to keep the application awake
2.  Self pinging your own server in each 20 min (put code in the main server file)
3.  Run a timeout based Google apps script to ping your server

Your thoughts?

[Hrithwik Bharadwaj](https://hashnode.com/@hrithwik)

[Apr 26, 2021](https://hashnode.com/posts/how-to-stop-your-heroku-app-from-sleeping-free/6083c6edff5fc65284a7943b/comment/6084d12c70758d2ac1546090#reply-6086375870758d2ac1547d62)

Yes this is a good solution which most of them use [Pankaj](https://hashnode.com/@pankajtanwar). Most of my articles are targeted for beginners who are just starting out and using Kaffeine Shots is extremely simple

[Rahul Kamath](https://hashnode.com/@rhlkmth)

[Apr 24, 2021](https://hashnode.com/posts/how-to-stop-your-heroku-app-from-sleeping-free/6083c6edff5fc65284a7943b/comment/6083c9d4ff5fc65284a794c1)

Needed this. thank you

[Hrithwik Bharadwaj](https://hashnode.com/@hrithwik)

[Apr 24, 2021](https://hashnode.com/posts/how-to-stop-your-heroku-app-from-sleeping-free/6083c6edff5fc65284a7943b/comment/6083c9d4ff5fc65284a794c1#reply-608458b9e1555b2a98aaa040)

Glad that it was helpful
