Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

  • InstallNode.js

  • $ npm install awake-heroku --save

Types

IAppInfo

FieldRequiredTypeDescription
idfalsenumberUnique ID
urltruestringYour URL you want wakeup
lastHeartBeatfalsenumberLast time wakeup

IAwakeService

FieldTypeDescription
addvoidAdd new herou app to wakeup
removevoidRemove heroku app and stop wakeup that
getvoidGet heroku infomation by id
getAllIAppInfo[]List heroku applications (app)
startvoidStart wakeup your heroku apps
stopvoidStop 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 serviceAwakeHeroku.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 serviceAwakeHeroku.start();

To stop using AwakeHeroku

importAwakeHerokufrom"awake-heroku";// Stop serviceAwakeHeroku.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

About

A package help your heroku (https://heroku.com/) app is always runs . Wake up your heroku app !

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp