Skip to content
Snippets Groups Projects
Commit b4d551bd authored by EC2 Default User's avatar EC2 Default User
Browse files

updated hook_server

parent 06199f3a
No related branches found
No related tags found
No related merge requests found
......@@ -5,8 +5,9 @@ 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');
exec('/bin/bash build.sh');
console.log('build');
}
});
server.listen(3001);
\ No newline at end of file
server.listen(3001);
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