hapi-nudge
v1.1.1
Published
A Hapi plugin to prevent Heroku dynos from sleeping.
Downloads
2
Readme
hapi-nudge
A Hapi plugin to prevent Heroku dynos from sleeping.
Installation
npm install hapi-nudge
Usage
var Nudge = require('hapi-nudge')
server.register({
register: Nudge,
options: options,
})
Options
hostname
String
The hostname. Default
server.info.host
.pathname
String
The pathname. Default
'/nudge'
.port
Number
The port. Default
server.info.port
.protocol
String
The protocol. Default
server.info.protocol
.interval
Number
How often the server should be nudged. Default
60e3
.
License
See LICENSE.