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:
Steps I have taken in order to start Ghost in production mode:
- 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 theurl
,server
, anddatabase
keys.
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 --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.