Skip to content

Latest commit

 

History

History
22 lines (15 loc) · 398 Bytes

raspberryRunNodeScriptOnBoot.md

File metadata and controls

22 lines (15 loc) · 398 Bytes

#Start script on boot raspberry pi 3 (raspbian)

http://weworkweplay.com/play/raspberry-pi-nodejs/

cd /etc/ sudo nano rc.local

add script

su pi -c 'node [path to your script file] < /dev/null &'

sudo npm i forever -g sudo npm i forever-service -g cd [my app] (where app.js is) sudo forever-service install myService sudo nano /etc/rc.local sudo service myService start

sudo forever list