1 Star 1 Fork 0

wyq / ghost-blog

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Ghost Build status

Ghost Screenshot

Ghost is a simple, powerful publishing platform that allows you to share your stories with the world.

Ghost 目由非盈利性组织 Ghost Foundation 和一群优秀的独立贡献者共同维护。我们正在尽最大努力让在线内容创作变得更好。

注意:如果你在使用 Ghost 过程中遇到难题需要帮助,请尽量加入 Slack 社区 寻求帮助而不是在 Github 上新开一个 issue。

快速安装

安装前请确保已经安装了 Node.js - 我们建议使用 Node v0.10.x 的最新版本。

使用 nvm 切换node版本

nvm install 4.2.0
nvm use 4.2.0

如果进入后台不知道账号密码,可以删掉 content/data/ghost-dev.db 文件

  1. 解压文件至你所希望的安装位置
  2. 启动一个命令行窗口
  3. 如果你下载的不是集成安装包(也就是没有 node_modules 目录),清闲执行 npm install --production 命令
  4. 启动 Ghost
    • 本地环境:npm start
    • 生产环境:npm start --production
  5. 启动浏览器,打开 http://localhost:2368/ghost 链接, 访问ghost后台
  6. 启动浏览器,打开 http://localhost:2368 链接,访问ghost前台

还可以参考详细的安装指南

安装中文版

Node.js 是必须的,同样也是建议使用 Node v0.10.x 的最新版本。如果你使用的是 Node v0.12io.js v1.2 版本,请小心!遇到问题可以到 问答社区 讨论。

  1. 下载最新的 Ghost 中文版 。建议下载集成安装包,大概20M左右。
  2. 解压所有文件到你所希望的安装目录
  3. 启动一个命令行窗口
  4. 如果你下载的不是集成安装包(也就是没有 node_modules 目录),清闲执行 npm install --production 命令
  5. 启动 Ghost
    • 本地环境:npm start
    • 生产环境:npm start --production
  6. 启动浏览器,打开 http://localhost:2368/ghost 链接

开发者(从 git 下载 Ghost)

安装 Node.js。

# Node v0.10.x - 推荐
# Node v0.12.x 与 io.js v1.2 - 部分支持
#
# 自行斟酌吧

克隆 :ghost:

git clone git://github.com/tryghost/ghost.git
cd ghost

安装 grunt。

npm install -g grunt-cli

安装 Ghost。 如果你是在本地环境运行 ghost,可以使用 master 分支。如果是在生产环境运行,请使用 stable 分支。 :no_entry_sign::rocket::microscope:

npm install

编译!

grunt init

为生产环境压缩各种文件。

grunt prod

启动博客。

npm start

##  让 Ghost 在生产环境中运行请添加 --production 参数

祝贺你,一切搞定了!顺便说一下,你还可以直接执行 npm install ghost 指令将 Ghost 作为 npm 包来使用。将 Ghost 作为 NPM 模块来使用 是一份很详尽的文档。

还可以参考更详细的安装指南

部署 Ghost

Ghost(Pro) + DigitalOcean

Ghost 官方支持的 Ghost(Pro) 服务能够帮你节约大量时间,只需点几下鼠标就能部署一个 Ghost 实例到 DigitalOcean 的服务器上,并且还可以免费享受到全球化的 CDN 服务。

Ghost(Pro) 所获得的所有收益都将用于 Ghost 基金 -- 一个非营利性的组织,为 Ghost 的开发和维护提供支持。

如果你希望自己部署 Ghost,可以参考这里

如果你使用的是阿里云主机,还可以参考我们撰写的系列文章,按照文中指引一步步安装 Ghost 以及依赖的各个组件。

保持更新

当 Ghost 有新版本发布时,请参考 升级指南 以了解如何升级 Ghost。

你可以加入 问答社区(中文) 和其他 Ghost 用户交流,或者在 public Slack team 与 Ghost 开发者沟通。我们每周二下午 5:30 都会在 Slack 上开碰头会。请注意,我们说的是伦敦时间

每次有新版本都会在 技术博客 上公布。你可以通过邮件订阅或者在 Twitter 上关注 @TryGhost_Dev

:saxophone::turtle:

版权 & 协议

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

中文版本及插件

Copyright (c) 2013-2015 Ghost 中国/中文网 - 采用 MIT 许可协议 发布。

Copyright (c) 2013-2015 Ghost Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/wyqno1/ghost-blog.git
git@gitee.com:wyqno1/ghost-blog.git
wyqno1
ghost-blog
ghost-blog
master

搜索帮助