Giter Site home page Giter Site logo

ghost.zh's Introduction

Quickstart:

在控制台,切换到工作目录,执行以下命令

  1. git clone https://github.com/ghostchina/Ghost.zh.git
  2. npm install -g grunt-cli
  3. npm install
  4. grunt init (and grunt prod if you want to run Ghost in production mode)
  5. npm start

使用mysql

  1. 复制 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_GENERAL_CI'
            }
        },

常见问题

1 npm start ghost 正常运行以后,访问/ghost 无法进入后台,显示的状态码为302 答: 进入ghost 后台系统会自动检测更新,是否有新版本,但是国内无法访问这个地址 update.ghost.org.

解决办法:替换 /core/server/update-check.js 190行

    return updateCheckRequest().then(updateCheckResponse).otherwise(updateCheckError);

    //return updateCheckRequest().then(updateCheckResponse).otherwise(updateCheckError);
    deferred.resolve();

2 数据库中文乱码 修改confi.js中database的字符集设置

	charset: 'UTF8_GENERAL_CI'

3 主页显示很慢,界面很久才展示出来
答: 还是因为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 & License

Ghos官网ghostchina 中文网

Copyright (c) 2013-2014 Ghost Foundation - Released under the MIT license.

ghost.zh's People

Contributors

erisds avatar sebgie avatar matthojo avatar halfdan avatar jgable avatar jaswilli avatar johnonolan avatar javorszky avatar hswolff avatar novaugust avatar cobbspur avatar tgriesser avatar pauladamdavis avatar gotdibbs avatar darvelo avatar morficus avatar ricardobeat avatar rwjblue avatar jamesbloomer avatar cgiffard avatar jgillich avatar shindakun avatar felixrieseberg avatar codeincontext avatar mjbshaw avatar schneidmaster avatar lholmquist avatar nicoburns avatar zacgeis avatar gimelfarb avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.