V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
sanddudu
V2EX  ›  Ghost

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

  •  
  •   sanddudu · 2015-03-17 20:39:06 +08:00 · 4932 次点击
    这是一个创建于 3328 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 目前更新速度会加快,大家可以做好准备。

    第 1 条附言  ·  2015-03-23 19:14:06 +08:00
    0.5.9 ~ 0.5.10 的七牛适配版本的示例配置文件中都是又拍的格式,已经修正。
    Github 中为 0.5.10 Patch1,NPM 中为 0.5.10-0.1
    10 条回复    2015-04-07 11:24:38 +08:00
    southwolf
        1
    southwolf  
       2015-03-18 07:41:08 +08:00 via iPad
    赞赞赞 直接npm挂上就方便多了
    xudong
        2
    xudong  
       2015-03-23 14:08:44 +08:00
    七牛云的有问题,上面是又拍云的文件。
    是不是传错了?
    sanddudu
        3
    sanddudu  
    OP
       2015-03-23 14:22:59 +08:00 via iPhone
    @xudong 唔,我晚上回家看看
    sanddudu
        4
    sanddudu  
    OP
       2015-03-23 14:27:25 +08:00 via iPhone
    @xudong 稍微检查了一下,好像没什么问题
    是哪个文件出问题了?
    另外 npm 版本的应该不会错,你可以下下来看看
    xudong
        5
    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
        6
    xudong  
       2015-03-23 17:31:59 +08:00
    @sanddudu 不好意思忘了","符号
    sanddudu
        7
    sanddudu  
    OP
       2015-03-23 18:35:04 +08:00
    我看了一下,不知道为什么 config.example.js 是又拍的格式...
    我马上就修
    sanddudu
        8
    sanddudu  
    OP
       2015-03-23 18:37:59 +08:00
    @xudong
    我看了一下,不知道为什么 config.example.js 是又拍的格式...
    我马上就修
    另外发现这个错误已经出现了两个版本了...
    sanddudu
        9
    sanddudu  
    OP
       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
        10
    tyrik  
       2015-04-07 11:24:38 +08:00
    @sanddudu

    root@localhost:/var/www# npm start

    > [email protected] 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)
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2667 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 51ms · UTC 02:01 · PVG 10:01 · LAX 19:01 · JFK 22:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.