Skip to content
Browse files

test update.

  • Loading branch information...
1 parent a3bfaa4 commit f3e2e065dc22ca3d626252fcda759e0c6aa71de9 Default Username committed with root Jan 27, 2012
Showing with 10 additions and 7 deletions.
  1. +9 −6 server.js → app.js
  2. +1 −1 public/index.js
View
15 server.js → app.js
@@ -5,22 +5,21 @@ var express = require("express"); //"-unstable");
var util = require("util");
var fs = require('fs');
var crypto = require('crypto');
-//var git = require('git');
var walk = require('walk');
var spawn = require('child_process').spawn;
var exec = require('child_process').exec;
-//var haibu = require('haibu');
var app = express.createServer();
app.use(express.static(__dirname + '/public'));
-app.listen(3141);
+var port = process.env.PORT || 3141;
+app.listen(port);
var thisAppDirName = __dirname.substring(__dirname.lastIndexOf("/")+1);
//console.log("MY DIR NAME IS: " + thisAppDirName);
-var teamID = "2011_11_13_EditorDev";
+var teamID = "EditorDev";
if(teamID == thisAppDirName) {
- teamID = "2011_11_13_Sandbox";
+ teamID = "Sandbox";
}
/*
@@ -154,7 +153,7 @@ everyone.now.s_getAllProjectsFiles = function(callback){
// use this to remove/sort files before doing the more expensive "stat" operation.
//console.log(root + " / " + nodeNamesArray);
for(var i=nodeNamesArray.length-1; i>=0; i--){
- if(nodeNamesArray[i] == ".git"){
+ if(nodeNamesArray[i] == ".git" || nodeNamesArray[i] == "node_modules"){
nodeNamesArray.splice(i, 1);
}
}
@@ -535,6 +534,9 @@ function localProjectDeploy(userObj, deployerCallback){
var projPath = '/NETFS/'+team;
var projectName = team;
+ console.log("DEPLOYMENT PLACEHOLDER: " + projectName);
+
+ /*
var haibuApp = {
"user": team,
"name": projectName,
@@ -570,6 +572,7 @@ function localProjectDeploy(userObj, deployerCallback){
});
}
});
+ */
}
//
// UTF-8 data encode/decode: http://www.webtoolkit.info/
View
2 public/index.js
@@ -1304,7 +1304,7 @@ now.ready(function(){
if(specifiedFileToOpen){
openFileFromServer(specifiedFileToOpen);
}else{
- openFileFromServer("server.js");
+ openFileFromServer("app.js");
}
now.s_getAllProjectsFiles(function(err, filesAndInfo){
updateFileBrowserFromFileList(filesAndInfo);

0 comments on commit f3e2e06

Please sign in to comment.
Something went wrong with that request. Please try again.