2.0.8 • Published 5 years ago
awake-heroku v2.0.8
Awake-Heroku
Installation
Install Node.js
$ npm install awake-heroku --save
Types
IAppInfo
Field | Required | Type | Description |
---|---|---|---|
id | false | number | Unique ID |
url | true | string | Your URL you want wakeup |
lastHeartBeat | false | number | Last time wakeup |
IAwakeService
Field | Type | Description |
---|---|---|
add | void | Add new herou app to wakeup |
remove | void | Remove heroku app and stop wakeup that |
get | void | Get heroku infomation by id |
getAll | IAppInfo[] | List heroku applications (app) |
start | void | Start wakeup your heroku apps |
stop | void | Stop wakeup your heroku apps |
Usage
Insert bellow lines to index file of your project such as : app.js, index.js, root.js , ...
Using ES6
const { AwakeHeroku } = require("awake-heroku");
AwakeHeroku.add("https://your-app-nam-1.herokuapp.com");
AwakeHeroku.add("https://your-app-name-2.herokuapp.com");
// Start service
AwakeHeroku.start();
Using CommonJS
import { AwakeHeroku } from "awake-heroku";
AwakeHeroku.add("https://your-app-nam-1.herokuapp.com");
AwakeHeroku.add("https://your-app-name-2.herokuapp.com");
// Start service
AwakeHeroku.start();
To stop using AwakeHeroku
import AwakeHeroku from "awake-heroku";
// Stop service
AwakeHeroku.stop();
Please feel free to submit your issue or request feature
Create : https://github.com/quangpl/awake-heroku/issues/new
Roadmap
✓ MVP version
✓ Convert to Typescript
✓ Support wakeup multi-applications
✓ Send HTTP request by lightwieght
✓ Prepare structure to create CLI
✗ Error Handler
✗ Create CLI
2.0.7
5 years ago
2.0.8
5 years ago
2.0.6
5 years ago
2.0.5
5 years ago
2.0.3
5 years ago
2.0.4
5 years ago
2.0.2
5 years ago
2.0.1
5 years ago
2.0.0
5 years ago
1.0.17
5 years ago
1.0.16
5 years ago
1.0.9
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.15
5 years ago
1.0.14
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.1
5 years ago
1.0.3
5 years ago
1.0.0
5 years ago