# How to run ghost server , database and client separately?

**URL:** <https://forum.ghost.org/t/how-to-run-ghost-server-database-and-client-separately/15339>\
**Category:** Developer help\
**Created:** [June 22, 2020, 3:35pm UTC](https://forum.ghost.org/t/how-to-run-ghost-server-database-and-client-separately/15339 "2020-06-22T15:35:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prateek\_kumar](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/prateek_kumar/32/8412_2.png) [@Prateek\_kumar](https://forum.ghost.org/u/Prateek_kumar)\
**Post date:** [June 22, 2020, 3:35pm UTC](https://forum.ghost.org/t/how-to-run-ghost-server-database-and-client-separately/15339/1 "2020-06-22T15:35:24Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [June 22, 2020, 3:37pm UTC](https://forum.ghost.org/t/how-to-run-ghost-server-database-and-client-separately/15339/2 "2020-06-22T15:37:29Z")

</div>

> [@Prateek\_kumar](#):
>
> after grunt build but it is not working showing some errors?

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

> **[How to install & setup Ghost on Ubuntu 20.04 or 22.04](https://ghost.org/docs/install/ubuntu/)**
>
> A full production install guide for how to install the Ghost professional publishing platform on a production server running Ubuntu 20.04 or 22.04.

---

<div class="post-metadata">

**Author:** ![Prateek\_kumar](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/prateek_kumar/32/8412_2.png) [@Prateek\_kumar](https://forum.ghost.org/u/Prateek_kumar)\
**Post date:** [June 22, 2020, 6:09pm UTC](https://forum.ghost.org/t/how-to-run-ghost-server-database-and-client-separately/15339/3 "2020-06-22T18:09:16Z")

</div>

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](https://ghost.org/docs/install/ubuntu/?_ga=2.268229646.1456230442.1592822525-1689897054.1591203771) 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

```auto
(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

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [June 23, 2020, 12:14pm UTC](https://forum.ghost.org/t/how-to-run-ghost-server-database-and-client-separately/15339/4 "2020-06-23T12:14:07Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Prateek\_kumar](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/prateek_kumar/32/8412_2.png) [@Prateek\_kumar](https://forum.ghost.org/u/Prateek_kumar)\
**Post date:** [June 23, 2020, 12:26pm UTC](https://forum.ghost.org/t/how-to-run-ghost-server-database-and-client-separately/15339/5 "2020-06-23T12:26:04Z")

</div>

@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

---

<div class="post-metadata">

**Author:** ![DavidDarnes](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/daviddarnes/32/3533_2.png) [@DavidDarnes](https://forum.ghost.org/u/DavidDarnes)\
**Post date:** [June 24, 2020, 11:08am UTC](https://forum.ghost.org/t/how-to-run-ghost-server-database-and-client-separately/15339/6 "2020-06-24T11:08:00Z")

</div>

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:

> **[Ghost Architecture – A modern, decoupled web application for professional...](https://ghost.org/docs/architecture/)**
>
> Ghost is structured with a robust JSON API at it's core, with a beautiful client app and a fully decoupled theme layer on the front-end – find out more!
