I think I broke my ghost blog by updating my node version

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.

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

What commands did you run to upgrade nodejs? <br> <br>Also what’s the output of the following command? <br><pre>sudo cat /etc/init.d/ghost | curl -F ‘sprunge=<-’</pre>

I managed to solve it at the moment by using the Forever <br> <br>$ npm install forever <br>$ forever start index.js <br> <br>

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