Cast web api restart


#1

Can someone walk me thru the process of getting cast web api to auto start after reboot with pm2?
I know I need to create a script, but I’m not sure what to put in there, ie do I just put “cast-web-api” in there and save?
(Using Node on Windows)


#2

If you already have it up and running… ‘pm2 startup’ should give you the info you need.
I run it on linux though… windows may be totally different.
Link below for ‘startup script’ doc


#3

Thanks, got it to work (I think) “pm2 startup” doesn’t exactly work with Windows, but castwebapi is showing up in “pm2 list”


#4

SSGCULL - what did you exactly type into node.js to get it to work?