Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Leiningen plugin that pings websites/urls.
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src/leiningen
.gitignore
LICENSE
README.md
project.clj

README.md

lein-ping

Leiningen plugin that pings websites/urls.

Dependencies Status

Usage

To use this for project-level plugins please do next steps.

Put [lein-ping "0.1.0"] into the ':plugins' vector of your project.clj.

Add list of URLs that you want to ping into the ':ping-urls' vector of your project.clj. E.x.

  :ping-urls ["http://blog.hashobject.com/"]

Then just run

  lein ping

Tips

This is great tool for web apps deployed on Heroku. If you have only one dyno for your app it will fall asleep after 30 minutes of inactivity. See docs for more details on this. To avoid such behaviour you can ping your web app periodically.

To do this you need to use Heroku's scheduler addon. See docs for more details.

After installing addon and adding lein-ping plugin to your project.clj you can just configure 'lein ping' command to run every 10 minutes.

Contributions

We love contributions. Please submit your pull requests.

License

Copyright © 2013-2015 Hashobject Ltd (team@hashobject.com).

Distributed under the Eclipse Public License.

Something went wrong with that request. Please try again.