Skip to content

vimemo/sentinel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Install

Get node deps with yarn install.

Run

node server.js

Debug mode:

node server.js debug

Run Tests

grunt test

Overview

Sentinel listens to the CouchDB changes feed and runs a set of transitions on a given database change. It also manages scheduled tasks like message schedules.

Settings

Export a COUCH_URL env variable so sentinel knows what database to use. e.g.

export COUCH_URL='http://admin:pass@localhost:5984/medic'

Throughout this document we will be referring to ddoc. Here we mean the currently deployed _design/medic ddoc from medic-webapp.

Default settings values are in defaults.js. On initial start, and when there are changes to the ddoc, sentinel reads ddoc.app_settings to determine configuration.

By default all transitions are disabled, to enable a transition modify the transitions property on ddoc.app_settings.

Additional documentation

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published