1
0
mirror of https://github.com/thiagoralves/OpenPLC.git synced 2025-05-09 00:21:52 +08:00

small script fix

This commit is contained in:
thiagoralves 2016-03-14 17:59:40 -05:00
parent 9439a78e2f
commit d1e88dd539
2 changed files with 6 additions and 6 deletions

View File

@ -3,7 +3,7 @@ var multer = require('multer');
var app = express();
var upload = multer({ dest: './ladder_files/'});
var spawn = require('child_process').spawn;
var openplc = spawn('./core/OPLC_starter');
var openplc = spawn('./OPLC_starter');
var plcRunning = true;
@ -36,7 +36,7 @@ app.get('/run',function(req,res)
if (plcRunning == false)
{
console.log('Starting OpenPLC Software...');
openplc = spawn('./core/OPLC_starter');
openplc = spawn('./OPLC_starter');
plcRunning = true;
}
showMainPage(req,res);
@ -168,7 +168,7 @@ function compileOpenPLC()
{
console.log('compiled without errors');
console.log('Starting OpenPLC Software...');
openplc = spawn('./core/OPLC_starter');
openplc = spawn('./OPLC_starter');
plcRunning = true;
}
});

View File

@ -3,7 +3,7 @@ var multer = require('multer');
var app = express();
var upload = multer({ dest: './ladder_files/'});
var spawn = require('child_process').spawn;
var openplc = spawn('./core/OPLC_starter');
var openplc = spawn('./OPLC_starter');
var plcRunning = true;
@ -36,7 +36,7 @@ app.get('/run',function(req,res)
if (plcRunning == false)
{
console.log('Starting OpenPLC Software...');
openplc = spawn('./core/OPLC_starter');
openplc = spawn('./OPLC_starter');
plcRunning = true;
}
showMainPage(req,res);
@ -168,7 +168,7 @@ function compileOpenPLC()
{
console.log('compiled without errors');
console.log('Starting OpenPLC Software...');
openplc = spawn('./core/OPLC_starter');
openplc = spawn('./OPLC_starter');
plcRunning = true;
}
});