- Notifications
You must be signed in to change notification settings - Fork4
A package help your heroku (https://heroku.com/) app is always runs . Wake up your heroku app !
NotificationsYou must be signed in to change notification settings
quangpl/awake-heroku
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
InstallNode.js
$ npm install awake-heroku --save
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 |
Insert bellow lines to index file of your project such as : app.js, index.js, root.js , ...
const{ AwakeHeroku}=require("awake-heroku");AwakeHeroku.add("https://your-app-nam-1.herokuapp.com");AwakeHeroku.add("https://your-app-name-2.herokuapp.com");// Start serviceAwakeHeroku.start();
import{AwakeHeroku}from"awake-heroku";AwakeHeroku.add("https://your-app-nam-1.herokuapp.com");AwakeHeroku.add("https://your-app-name-2.herokuapp.com");// Start serviceAwakeHeroku.start();
importAwakeHerokufrom"awake-heroku";// Stop serviceAwakeHeroku.stop();
Create :https://github.com/quangpl/awake-heroku/issues/new
✓ MVP version
✓ Convert to Typescript
✓ Support wakeup multi-applications
✓ Send HTTP request by lightwieght
✓ Prepare structure to create CLI
✗ Error Handler
✗ Create CLI
About
A package help your heroku (https://heroku.com/) app is always runs . Wake up your heroku app !
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.