Hello, community
I try to access config.production.json file (want to add parameters of Mailgun) and get an error that “there is no such directory”
What i did and what i have to do:
Could you please type ‘ghost ls’ from the command line (as the ghost user)? Hopefully that’ll help you figure out where Ghost is actually installed. :)
I also tried another command, but it also doesn’t allow to switch directory and get config file
user@ghostonubuntu2204-s-1vcpu-2gb-ams3-01:~$ which ghost
/usr/bin/ghost
user@ghostonubuntu2204-s-1vcpu-2gb-ams3-01:~$ cd usr/bin/
-bash: cd: usr/bin/: No such file or directory
Oh, i’ve found the problem. You were right about another user. I forgot about “ghost-mgr” user that was created right after first steps of the “root” user.
I’ve opened cd /var/www/ghost, but can’t understand (sorry for one more newbie question) how open config file right from directory. I opened it, but with another command “sudo nano /var/www/ghost/config.production.json”.
Just interesting how to make it inside directory) And thank you so much for your support.
Nano is a simple text editor, so you should be able to edit your config file that way.
Did you find the location of the file? You can change to the ghost-mgr user using su - ghost-mgr and then ghost ls should give you the directory of the ghost install. Then you can cd <path-to-directory> and edit the file with nano.