Launch Week Day 5: Introducing Reachability for PHP.Learn More
Socket
Book a DemoSign in
Socket

notifier-server

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

notifier-server

A simple git-notifier server

latest
Source
npmnpm
Version
1.1.0
Version published
Weekly downloads
10
Maintainers
1
Weekly downloads
 
Created
Source

Each .js file in this directory should export a function that takes a notify server and a function to call when it wants to execute the shell file of the same name

Examples:

notifier.js

module.exports = function( server, exec ) {
  server.on( "scottgonzalez/node-git-notifier/push/heads/master", exec );
};

notifier.sh

#!/bin/bash
cd /usr/local/notifier
git fetch origin
echo "Checking out $1"
git checkout --force $1
npm install
nohup /etc/init.d/notify-server restart &

FAQs

Package last updated on 09 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts