Ghost 0.5.10 又拍云和七牛云适配完成

2015-03-17 20:39:06 +08:00
 sanddudu

0.5.9 只支持 Node v0.10.x,请您自行检查是否兼容。
0.5.9 起的适配加入了是否将图片文件保存在本地的选项,请您升级时在配置文件中加入新的设置项,否则无法启动。
0.5.9 起的适配修改了在远端的储存位置结构,请您注意。
0.5.10 起支持 Node 0.12 和 io.js V1.2。

可以支持当作 NPM 模块运行,具体方式参考官方文档

npm install ghost-upyun
npm install ghost-qiniu

Github 地址 :
https://github.com/sanddudu/ghost-upyun
https://github.com/sanddudu/ghost-qiniu

这次适配来的有点迟了,以后会尽量快的发布相关适配版本。
另外 Ghost 目前更新速度会加快,大家可以做好准备。

4950 次点击
所在节点    Ghost
10 条回复
southwolf
2015-03-18 07:41:08 +08:00
赞赞赞 直接npm挂上就方便多了
xudong
2015-03-23 14:08:44 +08:00
七牛云的有问题,上面是又拍云的文件。
是不是传错了?
sanddudu
2015-03-23 14:22:59 +08:00
@xudong 唔,我晚上回家看看
sanddudu
2015-03-23 14:27:25 +08:00
@xudong 稍微检查了一下,好像没什么问题
是哪个文件出问题了?
另外 npm 版本的应该不会错,你可以下下来看看
xudong
2015-03-23 17:28:53 +08:00
@sanddudu
/root/ghost/config.js:30
qiniu: {
^^^^^

ERROR: Unexpected identifier

SyntaxError: Unexpected identifier
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at ConfigManager.readFile (/root/ghost/core/server/config/index.js:294:12)
at ConfigManager.validate (/root/ghost/core/server/config/index.js:309:23)
at /root/ghost/core/server/config/index.js:238:29
at tryCatch1 (/root/ghost/node_modules/bluebird/js/main/util.js:45:21)
at Promise._callHandler (/root/ghost/node_modules/bluebird/js/main/promise.js:571:13)
xudong
2015-03-23 17:31:59 +08:00
@sanddudu 不好意思忘了","符号
sanddudu
2015-03-23 18:35:04 +08:00
我看了一下,不知道为什么 config.example.js 是又拍的格式...
我马上就修
sanddudu
2015-03-23 18:37:59 +08:00
@xudong
我看了一下,不知道为什么 config.example.js 是又拍的格式...
我马上就修
另外发现这个错误已经出现了两个版本了...
sanddudu
2015-03-23 19:17:57 +08:00
@xudong
0.5.9 ~ 0.5.10 的七牛适配版本的示例配置文件中都是又拍的格式,已经修正。
Github 中为 0.5.10 Patch1,NPM 中为 0.5.10-0.1
tyrik
2015-04-07 11:24:38 +08:00
@sanddudu

root@localhost:/var/www# npm start

> ghost-qiniu@0.5.10 start /var/www
> node index


/var/www/config.js:82
savelocal: true //If you set false, all images will delete after
^^^^^^^^^

ERROR: Unexpected identifier

SyntaxError: Unexpected identifier
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at ConfigManager.readFile (/var/www/core/server/config/index.js:307:12)
at ConfigManager.validate (/var/www/core/server/config/index.js:322:23)
at /var/www/core/server/config/index.js:251:29
at tryCatch1 (/var/www/node_modules/bluebird/js/main/util.js:45:21)

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/177584

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX