By Liturkey
Hello! I have a little problem with my installation of Ghost. I installed it and set target from my domain to it. I also setted it up to be only available at the domain I chose. Everything is working, but all links at the blog leads not to the domain, but to the IP of my Droplet.
Do I need to change anything in a config? And where do I need to change it?
Thanks, Lukáš Pánek
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
For Ghost to properly generate links with the domain name of your blog, you need to edit a setting in its configuration file. The file’s name is config.production.json If you are using the DigitalOcean Ghost One-Click application, it is located at /var/www/ghost/config.production.json
Find the section of the file containing the IP address:
"url": "http://111.11.11.111",
and edit it to contain your domain name:
"url": "http://example.com",
You can also do this using the Ghost CLI tool from inside the Ghost directory:
- cd /var/www/ghost/
- ghost config url http://example.com
Finally, you will need to restart Ghost for the change to take effect:
- ghost restart
Hello, it says permission denied when I tried running this: /var/www/ghost/config.production.json
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.