Commit 539dbeaa authored by Jérémie Garcia's avatar Jérémie Garcia

Cleaning logs in files Win version now working

parent a1d92f85
......@@ -605,7 +605,7 @@ assignSocketID : function( server, socket ) {
clientCount : 0,
serveInterfaceJS : function(req, res, next){
req.uri = url.parse( req.url );
console.log("Requested file from server: " + req.uri.pathname);
//console.log("Requested file from server: " + req.uri.pathname);
var extension = req.uri.pathname.split('.').pop();
if(extension == 'htm' || extension =="html") {
......@@ -684,7 +684,7 @@ assignSocketID : function( server, socket ) {
.listen( server.webServerPort );
server.name = 'livecode';
}else{
console.log("Server Dir for connect: " + server.directory);
// console.log("Server Dir for connect: " + server.directory);
//console.log("InterfJS: " + server.serveInterfaceJS);
server.webServer = connect()
.use( connect.directory( server.directory, { hidden:true,icons:true } ) )
......@@ -802,12 +802,10 @@ connectMaster : function( master ) {
//TODO: check for paths here
global.interface.init();
console.log("Zepto path: " + pathModule.normalize('./zepto.js'));
global.interface.interfaceJS = fs.readFileSync( pathModule.normalize('./zepto.js'), ['utf-8'] );
global.interface.interfaceJS += fs.readFileSync( pathModule.normalize('./interface.js/interface.js'), ['utf-8'] );
global.interface.interfaceJS += fs.readFileSync( pathModule.normalize('./server/interface.client.js'), ['utf-8'] );
global.interface.interfaceJS += fs.readFileSync( pathModule.normalize('./server/autogui.js'), ['utf-8'] );
console.log("InterfaceJS: " + global.interface.interfaceJS);
// global.interface.livecodePage = fs.readFileSync( './server/interfaces/livecode.html', ['utf-8'] );
......@@ -909,15 +907,15 @@ console.log("InterfaceJS: " + global.interface.interfaceJS);
//WOB_PATH
var WOB_path = pathModule.normalize(process.cwd());
//var WOB_path = pathModule.dirname(process.exec());
console.log("WOB path: " + WOB_path);
//console.log("WOB path: " + WOB_path);
//this is a trcik to get the root either when running on command line or from the app file.
var ROOT_path = WOB_path.substr(0, WOB_path.lastIndexOf('WOB'));
console.log("Root path: " + ROOT_path);
//console.log("Root path: " + ROOT_path);
//Create the path to the traj directory for saving trajs
var traj_path = pathModule.normalize(ROOT_path + "/traj");
console.log("Traj path: " + traj_path);
//console.log("Traj path: " + traj_path);
//TODO: check for paths here
//WARNING may have permissions problems! Considering asking the user for a directory
......@@ -970,7 +968,7 @@ function savetraj(args){
}
var server_path = pathModule.normalize(WOB_path + "/server/interfaces");
console.log("Server Path: " + server_path);
//console.log("Server Path: " + server_path);
//create the server for Trajectoires
var traj_server = {
......
......@@ -30,7 +30,6 @@ interfaceJS = fs.readFileSync( pathModule.normalize('../zepto.js'), ['utf-8'] )
interfaceJS += fs.readFileSync( pathModule.normalize('../interface.js'), ['utf-8'] );
interfaceJS += fs.readFileSync( pathModule.normalize('./interface.client.js'), ['utf-8'] );
console.log("YO from interface.server.js");
serveInterfaceJS = function(req, res, next){
req.uri = url.parse( req.url );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment