Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wake up heroku app

So, my heroku NODE.js app has always been functioning and I was trying it out today again via my url but for some reason it gives me an application error message.

I read about and logged in to my dashboard and it says that the app is asleep.. I have the free tier of heroku and I understand that the app has to sleep 6 hours in a day(correct?) Is there a way to wake up my app? (NOT KEEP IT ALIVE As I have read in other posts, JUST wake it up)

Follow up: Is there a way to know how much time I still have left before it wakes up?(Because of the necessary 6 hours of sleep of the free heroic tier)

like image 818
Kevin Cohen Avatar asked Jan 12 '16 16:01

Kevin Cohen


People also ask

How do I wake up Heroku app?

I figured it out and RESTARTED the dynos by going in to the dashboard. I went to personal apps, then clicked my app and was in the dashboard for the specific app. I clicked and hit restart dynos. That automatically restarted my app and woke up.

How do I make my Heroku app not sleep?

NewRelic Availability Monitoring If you install the NewRelic Heroku Addon you can set up availability monitoring. You provide a URL which NewRelic pings every 30 seconds, therefore keeping your app awake.

How long does it take Heroku to wake up?

A free Heroku web dyno will go to sleep if it does not receive any web traffic within a 30 minute period. When a sleeping dyno receives web traffic it will become active again, but there is a short delay as the application needs to be reloaded.

Why is my Heroku app sleeping?

As you may have known that Heroku does not allow your app to run for more than 1 hour. When an app on Heroku has only one web dyno and that dyno doesn't receive any traffic in 1 hour, the dyno goes to sleep. When someone accesses the app, the dyno manager automatically wakes up the web dyno to run the web process type.


1 Answers

I figured it out and RESTARTED the dynos by going in to the dashboard.

I went to personal apps, then clicked my app and was in the dashboard for the specific app.

On the top right corner I saw like a sidebar(3 vertical dots)

I clicked and hit restart dynos. That automatically restarted my app and woke up.

Restart all dynos

like image 170
Kevin Cohen Avatar answered Sep 30 '22 04:09

Kevin Cohen