Install ghost without command line

I did a package for Ghost Yunohost which helped people to install,remove,upgrade,backup and restore Ghost blogging platform on Debian based server.

It was working, but yesterday someone reported an 404 not file not found issue for the source file https://ghost.org/zip/ghost-latest.zip . Issue: https://forum.yunohost.org/t/ghost-blogging-platform/5332/24

Has the source been removed from here? If yes, how should I build Ghost without command-line. I had looked at this topic: Is it possible to run Ghost without installing Ghost CLI? but it did not hellped me as the link provided there don’t work anymore.

I want manual way to configure Ghost. Database creation, user creation,Nginx config,dependencies including nodejs and yarn, systemd are taken care by Yunohost scripts.

I would need the file where the config setting would be done and the migration commands.

I tried to install from Gost from the Gost’s github repo: https://github.com/TryGhost/Ghost.
Added the domain, database settings and port in the config.production.json.
But while running NODE_ENV=production knex-migrator init I got this error.

 knex-migrator init
51347 DEBUG + ynh_exit_properly
51348 WARNING [2019-04-14 21:57:57] ERROR
51348 DEBUG + local exit_code=1
51348 WARNING 
51348 DEBUG + '[' 1 -eq 0 ']'
51348 WARNING NAME: InternalServerError
51348 DEBUG + trap '' EXIT
51349 WARNING MESSAGE: Please provide a file named MigratorConfig.js in your project root.
51349 DEBUG + set +eu
51349 WARNING 
51349 DEBUG + echo -e '!!\n  ghost'\''s script has encountered an error. Its execution was cancelled.\n!!'
51349 WARNING level:normal
51350 DEBUG + type -t ynh_clean_setup
51350 WARNING 
51350 DEBUG + ynh_die
51350 WARNING empty
51350 DEBUG + local legacy_args=mc 

Can someone provide me with the exact commands to configure Ghost?

I have manage to install ghost, but I am getting this page in browser.

500

## The currently active theme "casper" is invalid.

[Go to the front page →](https://domain.tld/)

### Theme errors

Systemd error:

at trim_prefix (/var/www/ghost/node_modules/express/lib/router/index.js:315:13)
at /var/www/ghost/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/var/www/ghost/node_modules/express/lib/router/index.js:335:12)
at next (/var/www/ghost/node_modules/express/lib/router/index.js:275:10)
at Layer.handle_error (/var/www/ghost/node_modules/express/lib/router/layer.js:67:12)
at trim_prefix (/var/www/ghost/node_modules/express/lib/router/index.js:315:13)
at /var/www/ghost/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/var/www/ghost/node_modules/express/lib/router/index.js:335:12)
Error: ENOENT: no such file or directory, open '/var/www/ghost/core/server/public/ghost.min.css'

Hey @anmol26s

You are right, the source is missing! We moved the https://ghost.org/ site over to use Gatsby and this route got forgotten :grimacing:

I just added a fix, so https://ghost.org/zip/ghost-latest.zip should work again in a couple of minutes! Thanks for pointing our attention to it :hugs:

Its working again thanks for fixing the link.

BTW it would be good if this ghost-latest zip could be on github with releases tag.

You mean those: https://github.com/TryGhost/Ghost/releases ?

I don’t know why but I get this error with those releases: Install ghost without command line, but the ghost-latest zip works well.

Thanks

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