On my droplet I use git to pull a new theme, and it uses SASS and Compass and Grunt to compile the code. So I needed to update nodejs for it to work. and after updating my node and rebooting the server I get a 502 Bad Gateway when I visit my site.
when running (sudo or not) $ service ghost start
It gives me the feedback that Ghost is started really quickly (too quickly) and if afterwards I check with $ service ghost status it says it is not running.
nginx does the same.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Try starting ghost manually – does it work? <br><pre>cd /var/www/ghost <br>npm start</pre>
Yes I tried that as well, it does work, however it gives me a blank ghost installation, and all my original blog posts are gone not a big deal since I was looking to upgrade ghost to a newer version anyway. but this does not keep Ghost running once I exit the terminal
I managed to solve it at the moment by using the Forever <br> <br>$ npm install forever <br>$ forever start index.js <br> <br>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.