Deploy nodejs in Windows environment
Nodejs application is not like mongodb, redis, nginx ... It's not supposed to run as an os service.
As a best practice, people usually use a process management tool like pm2 to run production nodejs applications. You can give it a try by creating a deploy.sh
or deploy.bat
as an execution file which trigger pm2
command to start or restart the application.