Cast web api restart


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)


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


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