此项目已经废弃!!!
请转战新地址: https://github.com/ghostchina/Ghost-zh
在控制台,切换到工作目录,执行以下命令
git clone https://github.com/ghostchina/Ghost.zh.git
npm install -g grunt-cli
npm install
grunt init
(andgrunt prod
if you want to run Ghost in production mode)npm start
- 复制 config.example.js ,命名为 config.js 。 修改文件config.js 中的development 下的数据库配置信息 ,
database: {
client: 'mysql',
connection: {
host : '127.0.0.1',
user : 'yourname',
password : 'password',
database : 'ghost_blog',
charset : 'utf8'
}
},
答: 进入ghost 后台系统会自动检测更新,是否有新版本,但是国内无法访问这个地址 update.ghost.org.
解决办法:替换 /core/server/update-check.js 190行
return updateCheckRequest().then(updateCheckResponse).otherwise(updateCheckError);
为
//return updateCheckRequest().then(updateCheckResponse).otherwise(updateCheckError);
deferred.resolve();
或者,
在config.js中加入, updateCheck: false, 看起来像这样:
development: {
updateCheck: false,
database: {
client: 'mysql',
connection: {
host : '127.0.0.1',
......
修改confi.js中database的字符集设置
charset: 'UTF8_GENERAL_CI'
答: 还是因为google被墙了,主题中引用了一个谷歌字体,删掉 content/themes/casper/default.hbs 中的19行
<link rel="stylesheet" type="text/css" href="//fonts.googleapis.com/css?family=Noto+Serif:400,700,400italic|Open+Sans:700,400" />
Copyright (c) 2013-2014 Ghost Foundation - Released under the MIT license.