As the final step in a deploy process I am running a powershell script to start a node application using the NPM package “forever”. Although the step starts the node application, the step never completes; it stays in executing mode indefinitely. When run manually from the command line, the command completes and control returns to the prompt. Any ideas or suggestions will be appreciated.
powershell script:
cd C:\AuthAPI\dist
forever start index.js | Write-Host