Hi! I want to edit the config.production.json file to setup mail but how can I get to this file on a selfhosted instance from DigitalOcean (installed with 1-click).
Hey @MaikelVE , welcome to Ghost and DigitalOcean
To edit the production file you can either edit it by typing in the full path or navigate to the path and then edit it.
- Navigate to the ghost installation folder: “cd /var/www/ghost”
- Then, just to make sure, list the folder contents: “ls”
- You should see the following:
- To edit the file type in: "sudo nano config.production.json
Make the changes and hit control-x to quit, saving the changes made. I hope that helps
OR from the start just type in: “sudo nano /var/www/ghost/config.production.json”.
I prefer navigating to the folder that I am working in.
6 Likes
Hi! Cheers! I’ll try today
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.