Skip to content

Instantly share code, notes, and snippets.

@mcnaveen
Last active November 14, 2020 08:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcnaveen/08382825f69a3e2f3ae22cb791dc1381 to your computer and use it in GitHub Desktop.
Save mcnaveen/08382825f69a3e2f3ae22cb791dc1381 to your computer and use it in GitHub Desktop.
Stop Heroku from Sleep [Easy Way]

Create Google Apps script with the Following Code.

https://script.google.com/

Replace YOURAPPNAME

function ping() {
  UrlFetchApp.fetch("https://YOURAPPNAME.herokuapp.com/");
}

Set time trigger for every 30 Mins to stop heroku from sleep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment