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)
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.
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.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With