好吧,本人是一个白痴。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的代码。
请问怎么办?
1 dengchangdong OP 问题已经解决,sftp大法好! |
![]() | 2 hjc4869 2014-08-18 15:13:00 +08:00 via iPhone ghost博客装paas就行、没必要用vps的。 |
3 dengchangdong OP @hjc4869 主要是还没有玩过VPS。还有好像没有几个PAAS支持NODEJS吧。 |
![]() | 4 strak47 2014-08-18 17:02:40 +08:00 我也是在 vps 上部署 ghost,觉得很不错哈 |
![]() | 5 hjc4869 2014-08-18 17:29:47 +08:00 @dengchangdong openshift,windows azure都支持,没用过其他的。 另外我也是在vps上建的ghost博客。 |