Finally, we are at the end of this series!!
It took me a while to write this last bit of our journey. I ended up updating the codebase quite a bit and I apologise if some of the screenshots are bit outdated. If you are trying to deploy your own Ghost blog with the help of these posts, please have a look at the source code first. It can be found here https://github.com/jayanath/ghost-blog-in-aws
At this point we have a fully functional Ghost blog and I managed to integrate self hosted Commento into the site. Have a look at the comments section below and try it out!
Getting the self hosted Commento was easy enough once we know how to get the templates updated with commento integration code. If you missed that bit, have a look at https://fewmorewords.com/ghost-on-aws-part-05/ .
Commento comes as a container and below is a gist of the docker-compose file with the commento and postgreSQL containers.
The environment variables for Commento can be provided in a separate .env file like below.
At this point, the entire Ghost blog with Commento can be deployed very easily by following the instructions on README.md file in the repository. Once everything is working, make sure to disable new owners soon after you register yourself as the owner of the Commento platform. Also have a look at https://akismet.com/ to get some free anti-spam filtering enabled for your shiny new commenting solution.
Once deployed, follow Part 05 of this series to update your Ghost theme with the new self hosted Commento URL and give everything a nice restart. The URL information can be found here https://docs.commento.io/installation/self-hosting/embed-on-your-website/
Thank you for taking time to read this series and I hope it helps in some way or the other!
Next, I'm going to start a new series of posts about deploying a production ready Ghost installation on AWS Fargate using Terraform. This time I am planing to do a full CI/CD pipeline with Git Actions to deploy my infrastructure and the application.