From 6a00c8716df7093cfef82c18dc8d304815590157 Mon Sep 17 00:00:00 2001 From: Joris Berthelot Date: Thu, 9 Jun 2022 15:32:09 +0200 Subject: [PATCH 1/2] Update Docker build path in the example --- README.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 7479051..949a5e7 100644 --- a/README.md +++ b/README.md @@ -38,13 +38,13 @@ Here's an example of using this adapter with a containerized Ghost: ```Dockerfile FROM ghost:5-alpine as cloudinary -WORKDIR $GHOST_INSTALL/current RUN apk add g++ make python3 RUN su-exec node yarn add ghost-storage-cloudinary FROM ghost:5-alpine -COPY --chown=node:node --from=cloudinary $GHOST_INSTALL/current/node_modules $GHOST_INSTALL/node_modules -COPY --chown=node:node --from=cloudinary $GHOST_INSTALL/current/node_modules/ghost-storage-cloudinary $GHOST_INSTALL/content/adapters/storage/ghost-storage-cloudinary +COPY --chown=node:node --from=cloudinary $GHOST_INSTALL/node_modules $GHOST_INSTALL/node_modules +COPY --chown=node:node --from=cloudinary $GHOST_INSTALL/node_modules/ghost-storage-cloudinary $GHOST_INSTALL/content/adapters/storage/ghost-storage-cloudinary +# Here, we use the Ghost CLI to set some pre-defined values. RUN set -ex; \ su-exec node ghost config storage.active ghost-storage-cloudinary; \ su-exec node ghost config storage.ghost-storage-cloudinary.upload.use_filename true; \ @@ -54,7 +54,13 @@ RUN set -ex; \ su-exec node ghost config storage.ghost-storage-cloudinary.fetch.cdn_subdomain true; ``` -Here, we use the Ghost CLI to set some pre-defined values. +Make sure to set the content path right in the Ghost config as well: + +```json +"paths": { + "contentPath": "/var/lib/ghost/content/" +} +``` ## Configuration -- knotmirror 0.0.1 From 697047d5b7b8e59c46c7542f167cfaea09c3a0ec Mon Sep 17 00:00:00 2001 From: Joris Berthelot Date: Thu, 9 Jun 2022 15:33:40 +0200 Subject: [PATCH 2/2] Remove duplicate package name in debug info --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ec0cb4a..7ff1baf 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,7 @@ const StorageBase = require('ghost-storage-base'), path = require('path'), got = require('got'), plugin = require(path.join(__dirname, '/plugins')), - debug = require('@tryghost/debug')('adapters:storage:ghost-storage-cloudinary'), + debug = require('@tryghost/debug'), common = (() => { // Tries to include GhostError helper try { -- knotmirror 0.0.1