LowPowerLab Forum

Software support => Pi Gateway => Topic started by: muguran on May 26, 2015, 10:34:11 AM

Title: reload metrics.js
Post by: muguran on May 26, 2015, 10:34:11 AM
Hello,

I've made some changes to metrics.js and now I need to see them.
I've tried to kill the node gateway.js process and also the node (sudo pkill node) without success...
The only solution was to restart RPi.

Is there another easier way?

Thanks,
Mugur
Title: Re: reload metrics.js
Post by: ssmall on May 26, 2015, 11:56:50 AM
sudo /etc/init.d/nodejs-moteino.sh stop
sudo /etc/init.d/nodejs-moteino.sh start
Title: Re: reload metrics.js
Post by: Felix on May 26, 2015, 03:30:23 PM
pkill node
cd into the gateway.js/moteino.js directory (ie cd /home/pi/moteino)
node gateway.js & (this runs it until you logout and will display the output to your console)


If you want to run it permanently kill it again and start it with nohup:
nohup node gateway.js &