heroku-ping-alive

0.1.0 • Public • Published

heroku-ping-alive

Prevents free heroku servers to shut down by constantly pinging it.

npm install heroku-ping-alive --save 

##As an environment variable You can save the name of your heroku server as a environment variable - "name"

require('heroku-ping-alive');

##Pass in name as a variable

require('heroku-ping-alive')('heroku-name');

##Other parameters You dont need to, but you can choose the time between pings

require('heroku-ping-alive')({
	time: 1000 * 60 * 30 //In milliseconds, default 30minutes,
	name: 'heroku-name'
	route: '/home'  //The route you would like this app to ping
});

Readme

Keywords

Package Sidebar

Install

npm i heroku-ping-alive

Weekly Downloads

3

Version

0.1.0

License

MIT

Last publish

Collaborators

  • yangli1990