In this tutorial we will show you how to configure your Ghost blog URL and set your domain name. If you have followed our CLI Ghost Installation tutorial your Ghost instance should be located under: /var/www/ghost/. In case you have manually installed Ghost, please enter your Ghost directory and open the config.js file with your favorite text editor.
Locate the Production configuration section which should start around the 43th line of the config.js file with ### Production tag and change the following line:
Replace my-ghost-blog.com with your actual domain name or IP address depending on how you would like to access your Ghost blog.
When you have set your domain name save your changes and exit the text editor. To apply the changes you will need to restart your Ghost. In case you have followed our one-click installation tutorial or you are using Forever you can restart the Ghost process by simply killing the current execution -- it will be automatically restarted by Forever.
To view the process simply use the following command:
[root@ghost ghost]# ps auxf | grep ghost
This will give you the process running Ghost:
root 4200 0.3 7.6 1008668 78240 ? Sl 13:00 0:06 \_ /usr/local/bin/node /var/www/ghost/index.js
The process ID is the first number after the process user -- in this example the process ID is 4200. To stop the process use the process ID with the following command:
[root@ghost ghost]# kill -9 4200
Remember to change the process ID with your actual process ID. Forever should automatically restart your Ghost process.