Permalink
Browse files

emacs formatting changes

  • Loading branch information...
1 parent d595361 commit 9ef2d1e029508c04ea17cc64784a7aed3d931b7b @liangzan committed Aug 28, 2011
Showing with 10 additions and 10 deletions.
  1. +10 −10 app.js
View
20 app.js
@@ -19,7 +19,7 @@ var app = module.exports = express.createServer(
// Configuration
app.configure(function(){
app.set('views', __dirname + '/views');
-// app.set('views', __dirname + '/public');
+ // app.set('views', __dirname + '/public');
app.set('view engine', 'jade');
app.use(express.bodyParser());
app.use(express.methodOverride());
@@ -64,15 +64,15 @@ app.post('/', function (req, res, next) {
var jsonCounter = JSON.parse(fileContents);
var counter = jsonCounter.counter;
counter++;
-logger.debug("counter:" + counter)
+ logger.debug("counter:" + counter);
logger.debug(counter);
fs.writeFileSync(fileCounter, '{ "counter": ' + counter + ' }');
// move the file from the temp to permanent dir
var audioFileName = counter + '.' + ext;
var audioFilePath = audioDir + audioFileName;
var cmd = "mv " + files.audio.path + " " + audioFilePath;
-logger.debug("cmd:" + cmd)
+ logger.debug("cmd:" + cmd);
var child = exec(cmd, function(err, stdout, stderr) {
if (err) {
@@ -107,11 +107,11 @@ logger.debug("cmd:" + cmd)
app.listen(process.env.NODE_ENV === 'production' ? 80 : 8000, function() {
- // if run as root, downgrade to the owner of this file
-// if (process.getuid() === 0)
-// require('fs').stat(__filename, function(err, stats) {
-// if (err) return console.log(err)
-// process.setuid(stats.uid);
-// });
-});
+ // if run as root, downgrade to the owner of this file
+ // if (process.getuid() === 0)
+ // require('fs').stat(__filename, function(err, stats) {
+ // if (err) return console.log(err)
+ // process.setuid(stats.uid);
+ // });
+ });
console.log("Express server listening on port %d in %s mode", app.address().port, app.settings.env);

0 comments on commit 9ef2d1e

Please sign in to comment.