0.1.0 • Published 9 years ago

heroku-ping-alive v0.1.0

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

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
});
0.1.0

9 years ago

0.0.0

9 years ago

0.0.0-beta.1

9 years ago