私はにアクセスしようとしています。経由で私のゴーストブログにアクセスしてください。Ghost AWS Ubuntu Serverのプロダクション版へのアクセス
ここで私が作った手順は以下のとおりです。
- myBlog
クローンgitの - CD myBlogは、NPMインストール--production
- NPM開始またはNPM --production コンソールを起動し、サイトが稼働していると言うOK
設定ファイル
var path = require('path'),
config;
config = {
production: {
url: 'http://127.0.0.1:2368',
mail: {},
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost.db')
},
debug: false
},
server: {
host: '127.0.0.1',
port: '2368'
}
},
development: {
url: 'http://127.0.0.1:2368',
database: {
client: 'sqlite3',
connection: {
filename: path.join(__dirname, '/content/data/ghost-dev.db')
},
debug: false
},
server: {
host: '127.0.0.1',
port: '2368'
},
paths: {
contentPath: path.join(__dirname, '/content/')
}
},
}
私は私のPCを経由してからそれをアクセスもしようとした場合http://x.x.x.x:2368私はサイトが
に到達することはできません取得 - ポート2368は、シンプルなノードアプリでAWS、私もやったsudo ufw disable
テストAWSポート上で開いている:
var http = require('http');
var port = 2368;
http.createServer(function(req, res){
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end('Hello world!\n');
}).listen(port);
console.log('listening on port', port);
結果=作品
これは、Ghostの設定ファイルに何か問題がありますか?
ちょっと働いた!ありがとう!^_ ^ –