Permalink
Browse files

Fixing log handling.

  • Loading branch information...
1 parent e3976c5 commit f347f42f7e913a2329310a1eaab096c20c1e41bb @DanBUK DanBUK committed Jul 27, 2011
Showing with 3 additions and 2 deletions.
  1. +2 −1 lib/app.js
  2. +1 −1 lib/npm.js
View
@@ -14,7 +14,8 @@ module.exports = {
var appname = req.appname;
var user = req.user;
var app = req.app;
- var app_error_log_sock = path.join(config.opt.apps_home_dir, user._id, app.repo_id + '_chroot', '.nodester', 'logs.sock');
+ var app_error_log_sock = path.join(config.opt.apps_home_dir, app.username, app.repo_id + '_chroot', '.nodester', 'logs.sock');
+ console.log('Attempting to connect to: ' + app_error_log_sock);
var net = require('net');
var app_handler = net.createConnection(app_error_log_sock);
var timer = setTimeout(function () {
View
@@ -22,7 +22,7 @@ module.exports = {
}
if (good_action === true) {
- var app_user_home = path.join(config.opt.apps_home_dir, user._id, app.repo_id + '_rw');
+ var app_user_home = path.join(config.opt.apps_home_dir, app.username, app.repo_id + '_rw');
console.log(action + " " + package + " into " + app_user_home);
var sep = ' ';
if (package.indexOf(',') > -1) {

0 comments on commit f347f42

Please sign in to comment.