Skip to content

Commit

Permalink
[watcher] Fixed target and console.log to see what is happening
Browse files Browse the repository at this point in the history
  • Loading branch information
alejandro committed Mar 25, 2012
1 parent 8bb9121 commit 225ee69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ var app_start = function (repo_id, callback) {
lib.tear_down_unionfs_chroot(configData.chroot_base, configData.apphome, configData.apprwfolder, configData.appchroot, function (resp) {
lib.setup_unionfs_chroot(configData.chroot_base, configData.apphome, configData.apprwfolder, configData.appchroot, function (resp) {
if (resp === true) {
var cmd = 'cd'+configData.apphome+'; sudo npm link node-watcher; cd ' + configData.appchroot + ' && ulimit -c unlimited -n 65000 -u 100000 -i 1000000 -l 10240 -s 102400 -m 25600 && sudo ' + path.join(config.opt.app_dir, 'scripts', 'chroot_runner.js');
var cmd = 'cd '+configData.apprwfolder+'; n npm 0.6.12 install node-watcher .; cd ' + configData.appchroot + ' && ulimit -c unlimited -n 65000 -u 100000 -i 1000000 -l 10240 -s 102400 -m 25600 && sudo ' + path.join(config.opt.app_dir, 'scripts', 'chroot_runner.js');
//console.log(cmd);
exec(cmd, function (error, stdout, stderr) {
if (stdout) {
Expand Down
2 changes: 1 addition & 1 deletion lib/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ var insert_code = function(location,file,code, cb){
fs.writeFileSync(target, newfile, 'utf8');
return true;
}catch (e){
return false;
console.log(e);
return false;
}

} else {
Expand Down

0 comments on commit 225ee69

Please sign in to comment.