关于 VPS 安装 GHOST 博客的问题,求助大能。

2014-08-18 14:03:54 +08:00
 dengchangdong

好吧,本人是一个白痴。Linux什么的一点都不懂。
在网上找了一个教程戳这里 分别按照教程的1/2/3/4安装完毕。
但是问题出现了,在编辑config.js的时候
“.node.js
// # Ghost Configuration
// Setup your Ghost install for various environments
// Documentation can be found at http://support.ghost.org/config/

var path = require('path'),
config;

config = {
// ### Development (default)
development: {
// The url to use when providing links to the site, E.g. in RSS and email.
url: 'http://127.0.0.1:2368',

// Example mail config
    // Visit http://support.ghost.org/mail for instructions
    // ```
    //  mail: {
    //      transport: 'SMTP',
    //      options: {
    //          service: 'Mailgun',
    //          auth: {
    //              user: '', // mailgun username
    //              pass: ''  // mailgun password
    //          }
    //      }
    //  },
    // ```

    database: {
        client: 'sqlite3',
        connection: {
            filename: path.join(__dirname, '/content/data/ghost-dev.db')
        },
        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: '2368'
    }

}

没有看到production的代码。
请问怎么办?

3256 次点击
所在节点    问与答
5 条回复
dengchangdong
2014-08-18 14:32:11 +08:00
问题已经解决,sftp大法好!
hjc4869
2014-08-18 15:13:00 +08:00
ghost博客装paas就行、没必要用vps的。
dengchangdong
2014-08-18 16:39:28 +08:00
@hjc4869 主要是还没有玩过VPS。还有好像没有几个PAAS支持NODEJS吧。
strak47
2014-08-18 17:02:40 +08:00
我也是在 vps 上部署 ghost,觉得很不错哈
hjc4869
2014-08-18 17:29:47 +08:00
@dengchangdong openshift,windows azure都支持,没用过其他的。
另外我也是在vps上建的ghost博客。

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

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

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

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

© 2021 V2EX