How to run ghost server , database and client separately?

Hello, guys for a month I have been working on ghost but now I am facing a problem I want to know
1- If I can run ghost server (node.js) and client side separately and how to connect them to run the complete site?
2- I am trying to http-server . after grunt build but it is not working showing some errors?

I am using latest version of ghost on ubuntu.
Thank you in advance

Are you running Ghost from source? I would advise following the suggested installation steps shown here:

Hi @DavidDarnes thanks for replying.
I want to ask a small question that if it is possible to run ghost website independent of its backend server?
Since this will install ghost on the server.
And one more thing whenever I am running
http-server .
in ghost/core/client/dist folder so it should start the http-server but whenever I open the link which is
http://127.0.0.1:8080
It keeps on loading and gives the following output in the terminal

(node:37982) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated
[2020-06-22T18:31:50.096Z]  "GET /ghost/ember-cli-live-reload.js" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
[2020-06-22T18:31:50.101Z]  "GET /assets/vendor.css" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
[2020-06-22T18:31:50.111Z]  "GET /ghost/ember-cli-live-reload.js" Error (404): "Not found"
[2020-06-22T18:31:50.118Z]  "GET /assets/ghost.css" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
[2020-06-22T18:31:50.121Z]  "GET /assets/vendor.js" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
[2020-06-22T18:31:50.123Z]  "GET /assets/ghost.js" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
[2020-06-22T18:31:52.500Z]  "GET /ghost/api/v3/admin/users/me/?include=roles" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
[2020-06-22T18:31:52.502Z]  "GET /assets/img/favicon.ico" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
[2020-06-22T18:31:52.506Z]  "GET /ghost/api/v3/admin/users/me/?include=roles" Error (404): "Not found"
[2020-06-22T18:31:52.536Z]  "GET /ghost/api/v3/admin/site/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
[2020-06-22T18:31:52.538Z]  "GET /ghost/api/v3/admin/site/" Error (404): "Not found"
[2020-06-22T18:31:52.580Z]  "GET /ghost/api/v3/admin/users/me/?include=roles" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
[2020-06-22T18:31:52.582Z]  "GET /ghost/api/v3/admin/users/me/?include=roles" Error (404): "Not found"
[2020-06-22T18:31:52.594Z]  "GET /ghost/api/v3/admin/site/" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36"
[2020-06-22T18:31:52.598Z]  "GET /ghost/api/v3/admin/site/" Error (404): "Not found"

Thanks,
Regards Prateek

Can I ask if you’re trying to run this install locally or on a production server?

@DavidDarnes Thanks for replying
Currently I am running this locally.
What I want is to run admin client separately and my site (localhost:2368) separately.
Regards,Prateek

I think I understand, does that mean you want to host Ghost on a different server to your published site? If so then that sounds like you want to use Ghost as a Headless CMS. Check out this doc which goes into more detail:

1 Like