/ Web Design

Ghost Blog Location For the Basic Template Amp File

If you perform an update to the Ghost Blogging Platform, the basic AMP file is overwritten. This is not a problem unless you have made changes to the file. In that case, since the file is overwritten, all your changes are lost.

Make sure that you backup your AMP file before upgrading Ghost Blogger. The AMP file is located at:

[Directory]/ghost/current/core/server/apps/amp/lib/view/amp.hbs

To backup:

sudo cp [Name of Directory]/ghost/current/core/server/apps/amp/lib/view/amp.hbs ~/backup_amp.hbs

After Upgrading - just reverse:

sudo cp ~/backup_amp.hbs [Name of Directory]/ghost/current/core/server/apps/amp/lib/view/amp.hbs

Restart Ghost by first moving to the ghost installation directory :

cd [Name of Directory]/ghost/

Restart Ghost

ghost restart

Done.