|
|
@ -1512,6 +1512,7 @@ try { |
|
|
|
|
|
|
|
app.get('/runeditor', (req, res, next) => { |
|
|
|
var RES = new Object(); |
|
|
|
var mypath1 = process.cwd() |
|
|
|
RES.instance = req.query["instance"] |
|
|
|
RES.error = false |
|
|
|
RES.error_msg = "ok" |
|
|
@ -1554,8 +1555,8 @@ try { |
|
|
|
n.data = 'If this fails, try:' |
|
|
|
io.emit('message_out', n); |
|
|
|
|
|
|
|
var buildtmpexec = "" |
|
|
|
buildtmpexec = fs.readFileSync(runpathfile, {encoding:'utf8', flag:'r'}); |
|
|
|
var buildtmpexec = `${mypath1}/swarmlab_editor_service.sh ${RES.instance}` |
|
|
|
//buildtmpexec = fs.readFileSync(runpathfile, {encoding:'utf8', flag:'r'});
|
|
|
|
|
|
|
|
//var buildtmpexec = `docker run -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix microservice-firefox /bin/sh -c "firefox"`
|
|
|
|
|
|
|
|