在bae上搭建ghost0.6.2系统

2015-05-03  本文已影响220人  金发萌音

准备工作

  1. 下载ghost 0.6.2 推荐用Ghost 0.6.2 版本正式发布
  2. 下载bae上的mysql模块mysql

开始工作

        database: {
            client: 'mysql',
            connection: {
                host: 'sqld.duapp.com',
                port: 4050,
                user: '', //这里用你的ak
                password: '', //这里用你的sk
                database: '',//数据库名称
                charset: 'utf8'
            },
            debug: false
        },

        server: {
            // Host to be passed to node's `net.Server#listen()`
            host: '127.0.0.1',
            // Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT`
            port: '18080'
        },

        //Storage.Now,we can support `qiniu`,`upyun`, `aliyun oss`, `aliyun ace-storage` and `local-file-store`

        // or
        // 参考文档: http://www.ghostchina.com/qiniu-cdn-for-ghost/
        storage: {
            provider: 'qiniu',
            bucketname: '',//your bucketname
            ACCESS_KEY: '',//your ak
            SECRET_KEY: '',//your sk
            root: '/image/',
            prefix: 'http://xxxxx.hloli.me'
        },
    "main": "./core/index",
    "scripts": {
        "start": "node index.js",
        "test": "grunt validate --verbose"
    },
process.env.NODE_ENV = 'production';
    // process.
    //     removeAllListeners('SIGINT').on('SIGINT', shutdown).
    //     removeAllListeners('SIGTERM').on('SIGTERM', shutdown);

部署 成功~

上一篇 下一篇

猜你喜欢

热点阅读