A Hapi plugin to prevent Heroku dynos from sleeping.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
LICENSE.md
README.md
package.json

README.md

hapi-nudge

Build Status

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.