V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
dengchangdong
V2EX  ›  问与答

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

  •  
  •   dengchangdong · 2014-08-18 14:03:54 +08:00 · 3224 次点击
    这是一个创建于 3546 天前的主题,其中的信息可能已经有所发展或是发生改变。

    好吧,本人是一个白痴。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的代码。
    请问怎么办?

    5 条回复    2014-08-18 17:29:47 +08:00
    dengchangdong
        1
    dengchangdong  
    OP
       2014-08-18 14:32:11 +08:00
    问题已经解决,sftp大法好!
    hjc4869
        2
    hjc4869  
       2014-08-18 15:13:00 +08:00 via iPhone
    ghost博客装paas就行、没必要用vps的。
    dengchangdong
        3
    dengchangdong  
    OP
       2014-08-18 16:39:28 +08:00
    @hjc4869 主要是还没有玩过VPS。还有好像没有几个PAAS支持NODEJS吧。
    strak47
        4
    strak47  
       2014-08-18 17:02:40 +08:00
    我也是在 vps 上部署 ghost,觉得很不错哈
    hjc4869
        5
    hjc4869  
       2014-08-18 17:29:47 +08:00
    @dengchangdong openshift,windows azure都支持,没用过其他的。
    另外我也是在vps上建的ghost博客。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   788 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 20:58 · PVG 04:58 · LAX 13:58 · JFK 16:58
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.