https://github.com/stay-js/wake-up-dyno
Prevent Web Services easily from going to sleep.
https://github.com/stay-js/wake-up-dyno
javascript nodejs sleep web-services
Last synced: 2 months ago
JSON representation
Prevent Web Services easily from going to sleep.
- Host: GitHub
- URL: https://github.com/stay-js/wake-up-dyno
- Owner: stay-js
- License: mit
- Created: 2022-01-22T13:01:32.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-02-25T21:08:52.000Z (over 3 years ago)
- Last Synced: 2025-03-06T11:50:02.887Z (over 1 year ago)
- Topics: javascript, nodejs, sleep, web-services
- Language: JavaScript
- Homepage:
- Size: 15.6 KB
- Stars: 0
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Wake Up Dyno
Prevent Web Services easily from going to sleep.
## Setup
### Localhost
- Rename `env.example` to `.env`
- Change URL values to the Web Service URL, you can add or remove URL(s), because the script loops over all the entries starting with `URL`
- Then run the `yarn install` command or if yarn is not installed simply run `npm install`
- To start the application run the `yarn start` command or if yarn is not installed run `npm run start`
- And you are done, the script will send `GET` requests to each URL every two minutes.
### Railway.app, Render.com, etc.
- Create a new app using this repository
- Set Build Command to `yarn install`
- Set Start Command to `yarn start`
- Add your URL(s) to environment variables:
> set KEY to URL, URL1, URL2...
> set VALUE to your URL like: https://github.com
- Deploy the app
- And you are done, the script will send `GET` requests to each URL every two minutes.