Skip to content
Snippets Groups Projects
Commit c31a5e68 authored by Neil's avatar Neil
Browse files

started on git hook

parent ca1186f1
No related branches found
No related tags found
No related merge requests found
.DS_Store 0 → 100644
File added
*.pem
git clone https://gitlab.cs.washington.edu/nharlow/capstone-server.git server
cd server && node server.js
var util = require('util'),
exec = require('child_process').exec;
var http = require("http");
var server = http.createServer(function(request, response) {
if ( request.method == 'POST' ) {
// Post request from git hook, Should really check the origin but dont care for now
exec('./build');
}
});
server.listen(80);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment