0.1.6 • Published 10 years ago
node-pull v0.1.6
node-pull
Dead simple git pull interface for express using nodemon.
Installation
$ npm install node-pullQuick Start
Start nodemon to restart your process on changes.
$ nodemon -e js,html,css,jsonIntegrate node-pull
var express = require('express'),
nodepull = require('node-pull');
var app = express()
nodepull(app);
app.listen(3000)Then call
http://localhost:3000/gitpullAnd 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/'});