@@ -12,14 +12,13 @@ A fully featured and deeply tested [Cloudinary](https://cloudinary.com/) [Ghost]
12
12
13
13
### Features
14
14
15
- - Compatible with all Ghost versions :rocket :
15
+ - Up to date with latest Ghost versions :rocket :
16
16
- Latest Cloudinary NodeJS [ SDK] ( https://github.com/cloudinary/cloudinary_npm )
17
17
- Image upload, existence check & deletion (when Ghost will support it)
18
18
- Ability to upload in dated sub-directories (alike first Ghost default Local storage adapter ` YYYY/MM ` )
19
19
- Ability to upload images into a specific directory
20
20
- Ability to tag images
21
21
- Cool [ plugins] ( plugins ) !
22
- - Should be compatible with [ mmornati/ghost-cloudinary-store] ( https://github.com/mmornati/ghost-cloudinary-store ) configuration
23
22
24
23
## Installation
25
24
@@ -29,7 +28,7 @@ A fully featured and deeply tested [Cloudinary](https://cloudinary.com/) [Ghost]
29
28
- Download the adapter:
30
29
31
30
``` bash
32
- $ yarn add ghost-storage-cloudinary@2
31
+ $ yarn add ghost-storage-cloudinary
33
32
$ mv node_modules/ghost-storage-cloudinary content/adapters/storage/ghost-storage-cloudinary
34
33
```
35
34
@@ -40,11 +39,11 @@ $ mv node_modules/ghost-storage-cloudinary content/adapters/storage/ghost-storag
40
39
Here's an example of using this adapter with a containerized Ghost:
41
40
42
41
``` Dockerfile
43
- FROM ghost:3 -alpine as cloudinary
42
+ FROM ghost:4 -alpine as cloudinary
44
43
WORKDIR $GHOST_INSTALL/current
45
- RUN su-exec node yarn add ghost-storage-cloudinary@2
44
+ RUN su-exec node yarn add ghost-storage-cloudinary
46
45
47
- FROM ghost:3 -alpine
46
+ FROM ghost:4 -alpine
48
47
COPY --chown=node:node --from=cloudinary $GHOST_INSTALL/current/node_modules $GHOST_INSTALL/current/node_modules
49
48
COPY --chown=node:node --from=cloudinary $GHOST_INSTALL/current/node_modules/ghost-storage-cloudinary $GHOST_INSTALL/current/content/adapters/storage/ghost-storage-cloudinary
50
49
RUN set -ex; \
@@ -58,8 +57,6 @@ RUN set -ex; \
58
57
59
58
Here, we use the Ghost CLI to set some pre-defined values.
60
59
61
- :information_source : For Ghost version ` 1.x ` , use ` ghost-storage-cloudinary@1 ` package version.
62
-
63
60
## Configuration
64
61
65
62
Check out [ configuration.json.dist] ( configuration.json.dist ) for a complete example.
@@ -90,15 +87,15 @@ Run `yarn install` without the `--production` flag.
90
87
91
88
Runs the tests and generate coverage:
92
89
93
- $ npm t
90
+ $ yarn coverage
94
91
95
92
Runs the linter:
96
93
97
- $ npm run eslint
94
+ $ yarneslint
98
95
99
96
To enable debug logs, set the following environment variable:
100
97
101
- DEBUG=ghost-storage-cloudinary:*
98
+ DEBUG=ghost-storage-cloudinary:*
102
99
103
100
---
104
101
0 commit comments