The second way to configure your Ghost installation with the two last critical elements (domain name and mail server) is through the Digital Ocean console. The process is very similar in the terminal if you want to do it directly from your Mac without opening up the Digital Ocean site, but I'm going with the console here.
So, load the Digital Ocean website, login and click on your droplet, then click the "Console Access" button.
This will load the console (you may have to hit a random key to wake it up at this point):
But you should see something like this (where we last left off):
Now we need to get back to the root of the server, so type:
cd ..
This will change the directory (cd) back up one level. (Remember, use "fn+." buttons to make the .. needed)
You'll need to repeat the process 3 times and should have this:
Now you're ready to open the config.js file. Type:
nano /var/www/ghost/config.js
Now you'll be inside the file! REMEBER: use the arrow keys to get around. You need to find the area that starts with "production".
Here's the production area.
To connect this Ghost blog with your custom domain name, on the first line below "production" replace the default domain:
url: '//my-ghost-blog.com',
With your domain name, then proceed to add all the mail settings required exactly like you see here (I've removed my username and password, but you'll want to put in yours like the picture above. Be sure to keep the proper single quotes and commas in the right places)
Now click "CTRL+X" to exit, you'll be prompted if you want to save, type "y" for yes and hit enter to save and exit.
You're ready to visit your Ghost blog on your domain! (Skip ahead to the next section).