【文件属性】:
文件名称:ghost-mongodb-storage:Ghost博客平台的存储插件
文件大小:3KB
文件格式:ZIP
更新时间:2021-05-15 16:33:32
JavaScript
幽灵mongodb存储
用于[Ghost博客平台]( )的自定义存储模块,该模块允许将图像存储在mongodb中而不是本地文件系统中,这很有用,例如,在heroku上托管ghost博客时。 基于幽灵0.6.4。
不使用GridFS-如果图像大小超过16MB,则无法使用此模块。
安装
npm install --save ghost-mongodb-storage
创建存储模块
使用文件夹路径'content / storage / ghost-mongodb / index.js'创建index.js文件
'use strict';
module.exports = require('ghost-mongodb-storage');
配置
在每个环境中,将storage块添加到文件config.js中,如下所示:
storage: {
active: 'ghost-mo
【文件预览】:
ghost-mongodb-storage-master
----.gitignore(36B)
----README.md(1KB)
----package.json(563B)
----index.js(3KB)