How to restart Ghost


Based on these instructions from DO I am trying to restart Ghost (so the handlebar file changes shown)

Step 1: logged into Console (via DO site)

Step 2: Tried at these directories cd /var/www/ghost/content/themes/ cd /var/www/ghost/ cd /var/www/

Step 3: Trying this command service ghost restart

also tried these

sudo service ghost stop sudo service ghost start

then tried these

sudo systemctl restart ghost sudo systemctl restart nginx

** getting this message Failed to restart ghost.service: Unit ghost.service not found.

I then read that “ghost” is not a service per the thread below but the commands in this article didn’t work either.

I am new to this so any help would be appreciated.

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.

Login as root

sudo -i -u ghost-mgr cd /var/www/ghost/ ghost restart

Also can refer to my blog.

This is an old question but it’s still ranking top on Google search so it’s worth to mention a possible solutions:

Use Ghost-CLI

cd /var/www/<your-ghost-project>
ghost stop
ghost start

The reason I was having the same problem was because in my instance ghost service was running with a different name than ghost, it was actually ghost-<project>-com.

Hope it helps.