Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/misa198/heroku-awake-js
Keep your herokuapp always awakes.
https://github.com/misa198/heroku-awake-js
dyno heroku heroku-dyno herokuapp nodejs timeout
Last synced: 3 months ago
JSON representation
Keep your herokuapp always awakes.
- Host: GitHub
- URL: https://github.com/misa198/heroku-awake-js
- Owner: misa198
- License: mit
- Created: 2020-05-14T15:42:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-01-22T16:01:26.000Z (about 3 years ago)
- Last Synced: 2024-10-22T16:45:40.238Z (3 months ago)
- Topics: dyno, heroku, heroku-dyno, herokuapp, nodejs, timeout
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/heroku-awake
- Size: 30.3 KB
- Stars: 5
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Heroku Awake
Keep your herokuapp always awakes.
Support Javascript and Typescript
## Requirement
- Node
- Yarn or NPM## Installation
```bash
$ npm i heroku-awake --save
# OR
$ yarn add heroku-awake
```## Usage
### Javascript
```javascript
const express = require("express");
const herokuAwake = require("heroku-awake");const PORT = 3000;
const url = "https://your-app.herokuapp.com";const app = express();
app.listen(PORT, () => {
// Default application refresh time is 25 mins
herokuAwake(url);// If you want to change application refresh time
const time = 10;
herokuAwake(url, time);
});
```### Typescript
```typescript
import * as express from "express";
import * as herokuAwake from "heroku-awake";const PORT = 3000;
const url = "https://your-app.herokuapp.com";const app = express();
app.listen(PORT, () => {
// Default application refresh time is 25 mins
herokuAwake(url);// If you want to change application refresh time
const time = 10;
herokuAwake(url, time);
});
```## License
[MIT](https://choosealicense.com/licenses/mit/)