sanddudu
V2EX  ›  Ghost

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

  •  
  •   sanddudu · Mar 17, 2015 · 10247 views
  •   You need to sign in to view this topic
    This topic created in 4166 days ago, the information mentioned may be changed or developed.

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

    Supplement 1  ·  Mar 23, 2015
    0.5.9 ~ 0.5.10 的七牛适配版本的示例配置文件中都是又拍的格式,已经修正。
    Github 中为 0.5.10 Patch1,NPM 中为 0.5.10-0.1
    10 replies    2015-04-07 11:24:38 +08:00
    southwolf
        1
    southwolf  
       Mar 18, 2015 via iPad
    赞赞赞 直接npm挂上就方便多了
    xudong
        2
    xudong  
       Mar 23, 2015
    七牛云的有问题,上面是又拍云的文件。
    是不是传错了?
    sanddudu
        3
    sanddudu  
    OP
       Mar 23, 2015 via iPhone
    @xudong 唔,我晚上回家看看
    sanddudu
        4
    sanddudu  
    OP
       Mar 23, 2015 via iPhone
    @xudong 稍微检查了一下,好像没什么问题
    是哪个文件出问题了?
    另外 npm 版本的应该不会错,你可以下下来看看
    xudong
        5
    xudong  
       Mar 23, 2015
    @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  
       Mar 23, 2015
    @sanddudu 不好意思忘了","符号
    sanddudu
        7
    sanddudu  
    OP
       Mar 23, 2015
    我看了一下,不知道为什么 config.example.js 是又拍的格式...
    我马上就修
    sanddudu
        8
    sanddudu  
    OP
       Mar 23, 2015
    @xudong
    我看了一下,不知道为什么 config.example.js 是又拍的格式...
    我马上就修
    另外发现这个错误已经出现了两个版本了...
    sanddudu
        9
    sanddudu  
    OP
       Mar 23, 2015
    @xudong
    0.5.9 ~ 0.5.10 的七牛适配版本的示例配置文件中都是又拍的格式,已经修正。
    Github 中为 0.5.10 Patch1,NPM 中为 0.5.10-0.1
    tyrik
        10
    tyrik  
       Apr 7, 2015
    @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)
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2889 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 14:56 · PVG 22:56 · LAX 07:56 · JFK 10:56
    ♥ Do have faith in what you're doing.