crunner
This commit is contained in:
parent
96b032f816
commit
491f6c57e8
@ -29,7 +29,7 @@ var lxcTimeout = function(ip, time){
|
|||||||
|
|
||||||
var runner = function(req, res, ip){
|
var runner = function(req, res, ip){
|
||||||
lxcTimeout(ip);
|
lxcTimeout(ip);
|
||||||
console.log('runner!!!');
|
console.log('code to run:\n', req.params.code);
|
||||||
return request.post({url:'http://'+ip, body: JSON.stringify({code: req.params.code}) }, function(error, response, body){
|
return request.post({url:'http://'+ip, body: JSON.stringify({code: req.params.code}) }, function(error, response, body){
|
||||||
console.log(body);
|
console.log(body);
|
||||||
// body = JSON.parse(body);
|
// body = JSON.parse(body);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user