# test
**Repository Path**: meynl/test
## Basic Information
- **Project Name**: test
- **Description**: 项目演示测试
- **Primary Language**: JavaScript
- **License**: BSD-2-Clause
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2017-03-20
- **Last Updated**: 2020-12-19
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README


Ghost 目由非盈利性组织 **Ghost Foundation** 和一群优秀的独立[贡献者](https://github.com/TryGhost/Ghost/contributors)共同维护。我们正在尽最大努力让在线内容创作变得更好。
- [Ghost 官网(英文)](https://ghost.org) & [Ghost 中国](http://www.ghostchina.com/)
- [最新版本(英文)](https://ghost.org/download/) & [最新版本(中文)](http://www.ghostchina.com/download/)
- [技术支持(英文)](http://support.ghost.org/) & [问答社区(中文)](http://wenda.ghostchina.com/)
- [主题文档](http://themes.ghost.org)
- [贡献指南](https://github.com/TryGhost/Ghost/blob/master/CONTRIBUTING.md)
- [心愿列表](http://ideas.ghost.org/)
- [技术博客](http://dev.ghost.org)
**注意:如果你在使用 Ghost 过程中遇到难题需要帮助,请尽量加入 [Slack 社区](https://ghost.org/slack/) 寻求帮助而不是在 Github 上新开一个 issue。**
# 快速安装
安装前请确保已经安装了 Node.js - 我们建议使用 **Node v0.10.x** 的最新版本。
Ghost 同时也支持 **Node v0.12** 和 **io.js v1.2** ,但是请注意,这些版本很有可能导致安装失败。如果遇到问题,请到[论坛](https://ghost.org/forum/installation/)寻求帮助。
1. 下载 [最新版本](https://ghost.org/download/) 的 Ghost
1. 解压文件至你所希望的安装位置
1. 启动一个命令行窗口
1. 执行 `npm install --production` 命令
1. 启动 Ghost
- 本地环境:`npm start`
- 生产环境:`npm start --production`
1. 启动浏览器,打开 `http://localhost:2368/ghost` 链接
还可以参考详细的[安装指南](http://support.ghost.org/installation/) 。
# 安装中文版
Node.js 是必须的,同样也是建议使用 **Node v0.10.x** 的最新版本。如果你使用的是 **Node v0.12** 或 **io.js v1.2** 版本,请小心!遇到问题可以到 [问答社区](http://wenda.ghostchina.com/) 讨论。
1. 下载[最新的 Ghost 中文版](http://www.ghostchina.com/download/) 。建议下载**集成安装包**,大概20M左右。
1. 解压所有文件到你所希望的安装目录
1. 启动一个命令行窗口
1. 如果你下载的不是**集成安装包**(也就是没有 `node_modules` 目录),清闲执行 `npm install --production` 命令
1. 启动 Ghost
- 本地环境:`npm start`
- 生产环境:`npm start --production`
1. 启动浏览器,打开 `http://localhost:2368/ghost` 链接
# 开发者(从 git 下载 Ghost)
安装 Node.js。
```bash
# Node v0.10.x - 推荐
# Node v0.12.x 与 io.js v1.2 - 部分支持
#
# 自行斟酌吧
```
克隆 :ghost:
```bash
git clone git://github.com/tryghost/ghost.git
cd ghost
```
安装 grunt。
```bash
npm install -g grunt-cli
```
安装 Ghost。 如果你是在本地环境运行 ghost,可以使用 [master](https://github.com/TryGhost/Ghost/tree/master) 分支。如果是在生产环境运行,请使用 [stable](https://github.com/TryGhost/Ghost/tree/stable) 分支。 :no_entry_sign::rocket::microscope:
```bash
npm install
```
编译!
```bash
grunt init
```
为生产环境压缩各种文件。
```bash
grunt prod
```
启动博客。
```bash
npm start
## 让 Ghost 在生产环境中运行请添加 --production 参数
```
祝贺你,一切搞定了!顺便说一下,你还可以直接执行 `npm install ghost` 指令将 Ghost 作为 npm 包来使用。[将 Ghost 作为 NPM 模块来使用](https://github.com/TryGhost/Ghost/wiki/Using-Ghost-as-an-npm-module) 是一份很详尽的文档。
还可以参考更详细的[安装指南](http://support.ghost.org/installation/) 。
# 部署 Ghost

Ghost 官方支持的 **[Ghost(Pro)](https://ghost.org/pricing/)** 服务能够帮你节约大量时间,只需点几下鼠标就能部署一个 Ghost 实例到 [DigitalOcean](https://digitalocean.com) 的服务器上,并且还可以免费享受到全球化的 CDN 服务。
从 **Ghost(Pro)** 所获得的所有收益都将用于 Ghost 基金 -- 一个非营利性的组织,为 Ghost 的开发和维护提供支持。
如果你希望自己部署 Ghost,可以参考[这里](http://support.ghost.org/deploying-ghost/) 。
如果你使用的是**阿里云主机**,还可以参考我们撰写的[系列文章](http://www.ghostchina.com/tag/aliyun-ecs/),按照文中指引一步步安装 Ghost 以及依赖的各个组件。
# 保持更新
当 Ghost 有新版本发布时,请参考 [升级指南](http://support.ghost.org/how-to-upgrade/) 以了解如何升级 Ghost。
你可以加入 [问答社区(中文)](http://wenda.ghostchina.com/) 和其他 Ghost 用户交流,或者在 [public Slack team](https://ghost.org/slack/) 与 Ghost 开发者沟通。我们每周二下午 5:30 都会在 Slack 上开碰头会。请注意,我们说的是`伦敦时间`。
每次有新版本都会在 [技术博客](http://dev.ghost.org/tag/releases/) 上公布。你可以通过邮件订阅或者在 Twitter 上关注 [@TryGhost_Dev](https://twitter.com/tryghost_dev)。
:saxophone::turtle:
# 版权 & 协议
Copyright (c) 2013-2015 Ghost Foundation - Released under the [MIT license](LICENSE).
# 中文版本及插件
Copyright (c) 2013-2015 Ghost 中国/中文网 - 采用 `MIT 许可协议` 发布。