julianh2o / RokuAlexaLambdaSkill

An Alexa Skill that allows voice control of your Roku
MIT License
104 stars 55 forks source link

Running a Node Service (Forever) #28

Closed cmon69 closed 6 years ago

cmon69 commented 6 years ago

I haven't looked real deep into this but am wondering if I can use "forever" in my raspberry pi3 to automatically run my node server "node server.js". It would be nice if I lose power or reboot my pi to have node server.js to run automatically? rather then having to log into my raspberry pi and opening Terminal and typing in node server.js. If this can be done, is anyone got any idea where is should start first?

julianh2o commented 6 years ago

Yup, that's how I run this project! It just needs a little configuration to locate the executable and the log files.

On Mon, Nov 20, 2017 at 1:27 PM, Christapher Hasher < notifications@github.com> wrote:

I haven't looked real deep into this but am wondering if I can use "forever" in my raspberry pi3 to automatically run my node server "node server.js". It would be nice if I lose power or reboot my pi to have node server.js to run automatically? rather then having to log into my raspberry pi and opening Terminal and typing in node server.js. If this can be done, is anyone got any idea where is should start first?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/julianh2o/RokuAlexaLambdaSkill/issues/28, or mute the thread https://github.com/notifications/unsubscribe-auth/AAH4WAtWapH5l-QzmnLK1-moje7k8z89ks5s4e7CgaJpZM4Qk7KY .

cmon69 commented 6 years ago

That was actually pretty easy! Thank you julianh2o! Installed forever and added line to rc.local. rebooted pi to make sure it works, and it does!