How to restart Ghost

November 22, 2018 1.1k views
Ghost Ubuntu 18.04

Hi,

Based on these instructions from DO I am trying to restart Ghost (so the handlebar file changes shown)
https://www.digitalocean.com/community/tutorials/how-to-configure-and-maintain-ghost-from-the-command-line

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.
https://www.digitalocean.com/community/questions/ghost-start-and-stop-ubuntu-service-command

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

1 Answer

Login as root

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

Also can refer to my blog.

Have another answer? Share your knowledge.