I have seen similar questions but none answers mine. It may be that I'm overlooking something.
I have an existing server with subdomain pointing to next.js port and can successfully run nexxtjs app through
npm run dev
I would like to run it each time server restarts so the wite would be constantly up.
I have tried through the systemctl
service but I couldn't get it to work.
Is there another way? Am I overlooking something obvious?
@reboot cd project_folder && npm run dev