Closed lecoan closed 3 years ago
Hi, @lecoan! Just saw this issue and noticed that you've closed it. How did you manage to solve the problem you were having?
@ifvictr I downloaded the module by npm outside the docker, but the node_modules didn't mount within docker container, as shown in my docker-compse.yaml file, thus the adapter can not find its dependencies.
I see. Glad you were able to resolve this! :)
@lecoan could you tell me how did you update your docker-compose.yml file? Thank you.
@quyleanh I lost the config and don't use ghost for posting blogs now. But the configuration is easy.
After cp -r node_modules/ghost-storage-github content/adapters/storage/ghost-storage-github
, you need mount the other node_modules inside your container so that ghost-storage-github can find its deps :)
volumes:
- ./ghost/content/:/var/lib/ghost/content
- ./ghost/config.json:/var/lib/ghost/config.production.json
- ./ghost/node_modules:/var/lib/ghost/node_modules # new
@lecoan thank you very much. I've manage to run it successfully. Actually, my error is mistaken config.
Hi, I am using ghost with docker, and after I installed this adapter following the README, it given me the following error:
I examined the directory
/var/lib/ghost/content/adapters/
and there did hasstorage/ghost-storage-github/
,then according to the official document https://ghost.org/docs/concepts/storage-adapters/I moved the
index.js
andutils.js
outside frombuild
folder, but it didn't work either.My ghost configuration is:
and my docker-compse file is: