Hi!
Im using a custom front end built with Hugo and custom go templates, and are using Ghost purely to create posts, because i totally LOVE the editor(seriosly… theres nothing that beats it…)
When creating a post i use webhooks to make the go server fetch the posts using content API, and create a markdown file for every post, and store any other data in a json file locally on the server for search, dynamic functions etc.
When a new post is created it does the following:
Tell the go server to fetch the posts → Go server creates md files for new posts and re-generate md files for posts with changes. → The json file/s is updates with the new data → Assets like imgs are fetched and stored in the public /assets folder. → Static html files is generated and the public folder is updated with the new content/files.
So the front end are never making any requests to the ghost server, and the load of the ghost server is only when the go server calls the content API.
Right now im working on adding new features/pages to the site, and want to limit the amount of RAM for the ghost server. Im also thinking on moving the ghost server to a separate small vps to give the main server 100% of the resources.
If i was to move ghost to a new vps, would it work to use vps with 0.5GB? Or 1GB? And if keeping it on the main server, how much would i have to allocate to ghost server?
The perfect scenario would be if it was possible to run with 256MB RAM, as the provider im using both for myself and customers has a “extra small” vps that has 1c, 256MB.
From what i have seen, its not possible to “disable” ghosts own front end, is this correct? Im then meaning in a way that dosent involve making changes to ghost itself which would have to be re-done for every update.
But if its never accessed, it wouldent add to ram usage right? Or does ghost do something in the background with the front end like generating stuff that would increase ram req?
Sorry for a long post but i felt like i had to explain the setup for anybody to be able to answer my question…