zzo/JUTE — Issue #5: JUTE start/stop issues with npm
Author: baechul
Created: 2011-11-01 18:44:27+00:00
State: open

JUTE start/stop instruction didn't work.

============
heightrush-lm:suite tester$ npm start jute -g

> jute@0.0.54 start /usr/lib/node_modules/jute
> node ./jute/daemon.js --start

heightrush-lm:suite tester$ npm stop jute -g

> jute@0.0.54 stop /usr/lib/node_modules/jute
> node ./jute/daemon.js --stop

heightrush-lm:suite tester$ npm restart jute -g

> jute@0.0.54 stop /usr/lib/node_modules/jute
> node ./jute/daemon.js --stop

> jute@0.0.54 start /usr/lib/node_modules/jute
> node ./jute/daemon.js --start

===========
heightrush-lm:suite tester$ node --version
v0.4.11
heightrush-lm:suite tester$ npm --version
1.0.103
heightrush-lm:suite tester$
===========

And not sure if the following ways are supported but at least it started the JUTE server.

heightrush-lm:suite tester$ npm config get jute:docRoot/Users/tester/war/repos/quantum/sandbox/baechul/cocktails_taf/demo
heightrush-lm:suite tester$ jute start
Looking for unit tests in: /var/www/test/
Ouptut going to: /var/www/output/
DMPING: {"port":8080,"docRoot":"/var/www","testDir":"/var/www/test/","outputDir":"/var/www/output/","java":"/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home/bin/java","logFormat":"","testRegex":".html$","inject":1,"host":"","outputDirWeb":"output/","testDirWeb":"test/"}
Running as 501/20
Connect at http://heightrush-lm:8080/

I think obvious but 1 problem of this way is that it doesn't use configurations I set thru the npm. My docRoot was ignored and "/var/www" used instead.