Upgrading from 1.20.3 error

I have a pretty basic install found at http://h0m3lab.com

Went to upgrade from 1.20.3 and getting the following:

scotty@serverpilot:/srv/users/serverpilot/apps/ghost/public$ ghost version
Ghost-CLI version: 1.9.6
Ghost version: 1.20.3 (at /srv/users/serverpilot/apps/ghost/public)

scotty@serverpilot:/srv/users/serverpilot/apps/ghost/public$ ghost update
Ghost-CLI commands do not work inside of a git clone, zip download or with Ghost <1.0.0.
Perhaps you meant `grunt update`?
Otherwise, run `ghost update` again within a valid Ghost installation.

I’ve done some searching trying to sort out what the issue is, but I have a gut feeling I’m digging too deep and this is a simple solution.

@h0m3lab I don’t know how ServerPilot handles apps like Ghost, did you install Ghost using Ghost-CLI?

From the error message it sounds like you are running ghost update in the wrong directory or your Ghost instance was not installed with Ghost-CLI in which case you’ll need to work out the correct way of updating in your hosting environment.

Just to give an update to people that may stumble upon this in the future.

I suspect I didn’t install ghost via the CLI because I never gave the serverpilot user sudo privileges. I enabled those and then did a fresh install via the CLI then restored the data - everything worked as expected during & post the install.

I also had to create the .htaccess file in root app directory containing the index redirect:

RewriteRule index.html http://localhost:2368/ [P]
RewriteRule (.*) http://localhost:2368/$1 [P]

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.