node-pull

0.1.6 • Public • Published

node-pull

Dead simple git pull interface for express using nodemon.

Installation

$ npm install node-pull

Quick Start

Start nodemon to restart your process on changes.

$ nodemon -e js,html,css,json

Integrate node-pull

var express = require('express'),
    nodepull = require('node-pull');

var app = express()
nodepull(app);

app.listen(3000)

Then call

http://localhost:3000/gitpull

And input swordfish ;)

Options

password

Change default password

...
nodepull(app, { password : '#secret#magnets#!'});

root

In case your project root is not the repos root.

...
nodepull(app, { root : 'somepath/things/yourprojectroot/'});

License

MIT

Readme

Keywords

none

Package Sidebar

Install

npm i node-pull

Weekly Downloads

32

Version

0.1.6

License

ISC

Last publish

Collaborators

  • ksidpen