node-pull
v0.1.6
Published
git-pull but for node ;)
Downloads
70
Readme
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/'});