Ghost 502 Bad Gateway

i installed ghost on my vps centos 7 and i did it all right
i have just one problem
when i run the command “npm start --production” the server start running and the website goes live

but when i close my ssh terminal i get “502 Bad Gateway” on my website
i know that the ghost shutting down but how i can let ghost running even if i close the terminal


You are looking for - Ghost-CLI - A fully loaded tool for installation and configuration

tthanks for you respond
i install it already
but when i run tthe command ghost start i get this error: Ghost-CLI commands do not work inside of a git clone, zip download or with Ghost <1.0.0.

I think that answers your question. You should use npm to install ghost-cli and it only launched with Ghost v1+