I’ve got an issue using storage adaptors and ghost ran as an npm module. When I run ghost I get error saying “cant find module”, and its looking for the npm module in my theme directory, rather than in the project root.
Hey @graemepaul! Think this github issue and discussion in it could be helpful for your problem The best way around contentPath issue is using an absolute path for your contentPath config.
Hi @graemepaul, sorry this has fallen off my radar It’s kind of hard to tell as we no longer actively supporting installing Ghost as an npm module and it’s hard to find time to set things up.
Can you please share more on how are you using ghost module inside your app and how you are passing in the configuration file into Ghost?
Thanks Gargol, that is disappointing. Can the docs be updated to say you are no longer supporting it please. All of the config is passed via the config.*.json file.
Can you recommend what to use instead of using it as a npm module?
Think, the best way to use Ghost for local development is through Ghost-CLI tool described here
For production you’d use this setup:
But it all depends on your situation. If you just want a blog instance ready to go that would be probably a Digital Ocean one click install droplet, and if you don’t want to worry about hosting at all would go with Pro Hosting provided by Ghost team.