Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikeesto/heroku-awake
:sunny: A GitHub action to keep a free Heroku dyno awake
https://github.com/mikeesto/heroku-awake
github-actions heroku
Last synced: about 2 months ago
JSON representation
:sunny: A GitHub action to keep a free Heroku dyno awake
- Host: GitHub
- URL: https://github.com/mikeesto/heroku-awake
- Owner: mikeesto
- License: mit
- Created: 2020-06-24T10:35:30.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-06-25T06:39:08.000Z (over 4 years ago)
- Last Synced: 2024-10-12T19:18:43.969Z (2 months ago)
- Topics: github-actions, heroku
- Language: Dockerfile
- Homepage:
- Size: 3.91 KB
- Stars: 53
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Heroku 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.
This GitHub action keeps a Heroku dyno awake by making a HTTP request to it every 30 minutes.
Heroku only provides a limited number of free dyno hours per month. The main benefit of a sleeping dyno is that it does not consume free dyno hours. Please ensure you have sufficient free dyno hours to support a 24/7 dyno before using this action.
## Usage
In order to use this action in your workflow, add this file to `.github/workflows/YOURACTION.yml`
```yml
name: Heroku Awakeon:
schedule:
- cron: "*/30 * * * *"jobs:
build:
runs-on: ubuntu-lateststeps:
- uses: mikeesto/[email protected]
with:
URL: "" # ADD YOUR HEROKU URL HERE e.g. https://cats.herokuapp.com
```## License
MIT.