Unable to run Ghost using forever

726 views Asked by At

I followed the official Ghost docs (here) for how to install and run forever on my AWS free-tier Ubuntu box as follows:

Installed forever with sudo npm install forever -g as the ubuntu user. Start with NODE_ENV=production forever start index.js and get:

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: index.js

I cannot reach my blog, if I execute forever list I get:

info:    Forever processes running
data:        uid  command         script   forever pid  id logfile                        uptime  
data:    [0] _hf3 /usr/bin/nodejs index.js 5034    5036    /home/ubuntu/.forever/_hf3.log STOPPED 

I have also tried the same process as the ghost user:

$ NODE_ENV=production forever start index.js
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: index.js

$ forever list
info:    Forever processes running
data:        uid  command         script   forever pid  id logfile                       uptime      
data:    [0] wOoE /usr/bin/nodejs index.js 5087    9973    /home/ghost/.forever/wOoE.log 0:0:0:1.684 
data:    [1] cL9U /usr/bin/nodejs index.js 8515    9967    /home/ghost/.forever/cL9U.log 0:0:0:2.966 
data:    [2] igDw /usr/bin/nodejs index.js 9481    9965    /home/ghost/.forever/igDw.log 0:0:0:3.236 
0

There are 0 answers