Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Lightweight Node.JS git deployer to be used with Bitbucket or Github POST service hooks

License

Notifications You must be signed in to change notification settings

alexanderscott/node-deploy-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

node-deploy-hook

NPM version

A super simple, lightweight Node.JS deployer to be used with Bitbucket or Github POST service hooks.

NPM

Install

Follow the instructions here to set up your remote web-server root, deploy user ssh access, and service hooks.

Install the stable npm version:

npm install deploy-hook

Install the development version:

git clone https://github.com/alexanderscott/node-deploy-hook 
cd node-deploy-hook && npm install

Install the repo as www-data (for nginx) or apache user:

sudo -Hu www-data npm install --save deploy-hook

or

sudo -Hu www-data git clone https://github.com/alexanderscott/node-deploy-hook 
cd node-deploy-hook && sudo -Hu www-data npm install

Add as a proxy to the deployment project's vhost in nginx or apache. For example in nginx, you could add:

    location /deploy/ {
        proxy_pass http://127.0.0.1:8888/deploy?project=MyProjectName&remote_branch=origin&local_branch=master;
    }

Run

Start the server as www-data or apache user:

cd /var/www/node-deploy-hook
sudo -Hu www-data nohup node deploy-hook.js > ./log/deploy.log 2>&1&

Change Log

v0.1.2

  • Update npm packages to fix security vulnerabilities

v0.1.1

  • Bitbucket hook is now working properly
  • Git pull replaced to git reset --hard

About

Lightweight Node.JS git deployer to be used with Bitbucket or Github POST service hooks

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages