Skip to content
main
Switch branches/tags
Code
This branch is 1 commit ahead of gnarf:master.
Contribute

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
 
 

Each .js file in the notifier.d/ directory should export a function that takes a notify server object, and a callback function to call when it wants to execute the shell file of the same name.

Examples:

foo.js

module.exports = function( server, exec ) {
  server.on( "jquery/some-service/push/heads/main", exec );
};

foo.sh

#!/bin/bash
cd /var/lib/some-service
git fetch origin
echo "Checking out $1"
git checkout --force $1
npm ci
nohup /etc/init.d/some-service restart &

About

No description, website, or topics provided.

Resources

Packages

No packages published