Tuesday, 11 April 2017

"npm start" with "forever"

I have put my mean-stack application into opt/myapp/ of a ubuntu server. After npm start, www.myapp.io/#/home in a browser communicates well to the app.

Now, I want to make the server up forever.

So I run in a command line

... ...$ forever start -c "npm start" /opt/myopp/
warn:    --minUptime not set. Defaulting to: 1000ms
warn:    --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info:    Forever processing file: /opt/myopp/
... ...$ forever list
info:    Forever processes running
data:        uid  command   script       forever pid  id logfile                     uptime  
data:    [0] OkJf npm start /opt/myopp/ 5045    5051    /home/softtimur/.forever/OkJf.log STOPPED 

However, www.myapp.io/#/home cannot communicate with the app/server. Does anyone know what's wrong here?



via SoftTimur

No comments:

Post a Comment