0.0.8 • Published 9 years ago

node-whenever v0.0.8

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

Manage your project's cron jobs in Node.js and automatically update your crontab with a simple command!

Build Status Code Climate

Purpose

This module allows you to manage the cron jobs related to your application and deploy them easily.

Use Cases:

  • I want scheduled jobs to run when my app is deployed but don't want to have to manually setup cron on my server
  • I want to manage my cron job configuration in my application so it is backed up in GIT without having to manually do it separately
  • I want to have regularly scheduled jobs to execute even if there is a node.js error and my app is down

Install

$ npm install -g node-whenever

Getting Started

$ wheneverize

This generates an initial schedule.js file. Setup your cron jobs in schedule.js.

$ updateCrontab

This is how you update your crontab from your schedule.js file. Run this command and all cronjobs in your crontab will be DELETED and then the crontab will be updated with the contents of your schedule.js file.

Testing

  1. Install mocha globally
  2. From project root, run $ mocha test/index.js

Note Running the tests actually updates your cron tab

Contribute

I'm happy to accept pull requests. If you want to contribute to the project please make sure you add a test(s).

Enjoy!

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

10 years ago