javascript - Node.js Forver keeps stopping other services running on the same box -


i using node.js forever run web service , website on machine.

these services in files called app.js , site.js respectively

i run multiple environments on same box , have been having devil of time keeping production or development instances every time start both services 1 seems kill other.

it appears node js uses name of script index rather full path.

thus if following commands run

user@somehost:somepath/dev/someservice/$ forever app.js start user@somehost:somepath/dev/someservice/$ cd ../../prod/someservice user@somehost:somepath/prod/someservice/$ forever app.js start 

with hindsight kind of obvious issue stopping of serivces. when running

user@somehost:somepath/prod/someservice/$ forever app.js stop 

both services stop. problem addressed using qualified path javascript file.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

ios - Change Storyboard View using Seague -