# How to run ghost in production mode?

**URL:** <https://forum.ghost.org/t/how-to-run-ghost-in-production-mode/41074>\
**Category:** Using Ghost\
**Created:** [September 9, 2023, 12:16pm UTC](https://forum.ghost.org/t/how-to-run-ghost-in-production-mode/41074 "2023-09-09T12:16:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tanchev](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/tanchev/32/26259_2.png) [@tanchev](https://forum.ghost.org/u/tanchev)\
**Post date:** [September 9, 2023, 12:16pm UTC](https://forum.ghost.org/t/how-to-run-ghost-in-production-mode/41074/1 "2023-09-09T12:16:13Z")

</div>

Hi, This is probably a very stupid question, yet I am having trouble running Ghost in production mode.

Despite my efforts, no matter what I do Ghost always starts in local mode as evidenced by the graphic below:

→ [Screenshot by Lightshot](https://prnt.sc/CNzwzfz05YVA)

Steps I have taken in order to start Ghost in production mode:

1. Configured config.production.json: I ensured I had a `config.production.json` file in the root directory of my Ghost installation. This file contains all the required configurations for production, including the `url`, `server`, and `database` keys.

→ [Screenshot by Lightshot](https://prnt.sc/tp-DiXxLRMzj)

Nonetheless, if I remove the development configuration file I start receiving this error:

→ Running in development mode

A ConfigError occurred.

Error detected in the development configuration.

I do not understand why Ghost keeps trying to run in development mode when I specifically want it to run in production.

Can someone with more experience explain what am I doing wrong?

Thank you 🙂

PS:This is the command I used for the installation:  
ghost install --url [http://ghost-production.com](http://ghost-production.com) --port 2388 --db mysql --dbhost localhost --dbport 3306 --dbname asgf\_fiu --dbuser asgf\_fiu --dbpass “…” --dir /home/asgf/ghost-production.com --process production --no-setup-linux-user --stack false --no-start

And yes I already noticed that there is no process production, I have since then changes it to local again.

---

<div class="post-metadata">

**Author:** ![Cathy\_Sarisky](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/cathy_sarisky/32/25750_2.png) [@Cathy\_Sarisky](https://forum.ghost.org/u/Cathy_Sarisky)\
**Post date:** [September 9, 2023, 12:18pm UTC](https://forum.ghost.org/t/how-to-run-ghost-in-production-mode/41074/2 "2023-09-09T12:18:09Z")

</div>

Could you please share how you’re starting Ghost?

---

<div class="post-metadata">

**Author:** ![tanchev](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/tanchev/32/26259_2.png) [@tanchev](https://forum.ghost.org/u/tanchev)\
**Post date:** [September 9, 2023, 12:19pm UTC](https://forum.ghost.org/t/how-to-run-ghost-in-production-mode/41074/3 "2023-09-09T12:19:56Z")

</div>

Ah already a reply, great thank you :).

Yes I tried starting ghost with several commands including:  
ghost start  
ghost start --production  
to no avail.

---

<div class="post-metadata">

**Author:** ![tanchev](https://sea1.discourse-cdn.com/flex015/user_avatar/forum.ghost.org/tanchev/32/26259_2.png) [@tanchev](https://forum.ghost.org/u/tanchev)\
**Post date:** [September 14, 2023, 11:15am UTC](https://forum.ghost.org/t/how-to-run-ghost-in-production-mode/41074/4 "2023-09-14T11:15:04Z")

</div>

Anyone, please? I am trying to run ghost normally from the terminal with ghost start when I already have declared my production configuration, and the same still doesn`t run in production mode; why is that?
