Browse Source

Update README.md

pull/279/head
young 4 years ago
parent
commit
e1636bc665
1 changed files with 20 additions and 20 deletions
  1. +20
    -20
      README.md

+ 20
- 20
README.md View File

@@ -2,7 +2,7 @@ GitLink(确实开源)是CCF官方指定的开源创新服务平台,旨在

![](https://code.gitlink.org.cn/young/forgeplus/raw/branch/standalone/docs/figs/gitlink.png?raw=true)

## 特色功能
## 1.特色功能

- **分布式协作开发**:基于Git打造分布式代码托管环境,提供免费公、私有代码仓库,支持在线文件编辑、代码分支管理、协作贡献统计、代码仓库复刻(Fork)、贡献合并请求(PR)、群智贡献审阅等功能,让您的项目在这里健康、快速的成长!

@@ -14,7 +14,7 @@ GitLink(确实开源)是CCF官方指定的开源创新服务平台,旨在

- **多维度用户画像**:实时采集和分析平台中的各类开源资源数据,搭建多维度用户画像评估系统,提供开发活动统计、贡献度日历、用户能力建模、角色与专业定位分析等功能,让您在个人主页展示开发动态与创新能力!

## 部署
## 2.部署流程


### 依赖库
@@ -31,18 +31,18 @@ GitLink(确实开源)是CCF官方指定的开源创新服务平台,旨在

### 步骤

#### 1. 克隆稳定版本
#### (1)克隆稳定版本
```
git clone -b standalone https://git.trustie.net/jasder/forgeplus.git
```

#### 2. 安装依赖包
#### (2)安装依赖包

```bash
cd forgeplus && bundle install
```

#### 3. 配置初始化文件
#### (3)配置初始化文件
进入项目根目录执行一下命令:

```bash
@@ -52,7 +52,7 @@ touch config/redis.yml
touch config/elasticsearch.yml
```

#### 4. 配置数据库
#### (4)配置数据库
数据库配置信息请查看/config/database.yml文件,
项目默认采用mysql数据库, 如需更改,请自行修改配置信息,
默认配置如下:
@@ -66,14 +66,14 @@ default: &default
password: 123456
```

#### 5. 配置gitea服务(可选)
#### (5)配置gitea服务(可选)
**如需要部署自己的gitea平台,请参考gitea官方平台:https://docs.gitea.io/zh-cn/install-from-binary/**

**因目前gitea平台api受限,暂时推荐从forge平台获取gitea部署文件进行部署:https://forgeplus.trustie.net/projects/Trustie/gitea-binary**

**配置gitea服务步骤**
1. 部署gitea服务,并注册root账户
2. 修改forge平台的 config/configuration.yml中的gitea服务指向地址,如:
1部署gitea服务,并注册root账户
2修改forge平台的 config/configuration.yml中的gitea服务指向地址,如:

```ruby
gitea:
@@ -83,10 +83,10 @@ gitea:
base_url: '/api/v1'
```

#### 6. 安装redis环境
#### (6)安装redis环境
**请自行搜索各平台如何安装部署redis环境**

#### 7. 安装imagemagick插件
#### (7)安装imagemagick插件
- Mac OS X
```bash
brew install imagemagick ghostscript
@@ -97,53 +97,53 @@ gitea:
sudo apt-get install -y imagemagick
```

#### 8. 创建数据库
#### (8)创建数据库
**开发环境为development, 生成环境为production**
```bash
rails db:create RAILS_ENV=development
```

#### 9. 导入数据表结构
#### (9)导入数据表结构

```bash
bundle exec rake sync_table_structure:import_csv
```

#### 10. 执行migrate迁移文件
#### (10)执行migrate迁移文件
**开发环境为development, 生成环境为production**
```bash
rails db:migrate RAILS_ENV=development
```

#### 11. clone前端代码
#### (11)clone前端代码
**将前端代码克隆到public/react目录下,目录结构应该是: public/react/build**
```bash
git clone -b standalone https://git.trustie.net/jasder/build.git
```

#### 12. 启动redis(此处以macOS系统为例)
#### (12)启动redis(此处以macOS系统为例)
```bash
redis-server&
```

#### 13. 启动sidekiq
#### (13)启动sidekiq
**开发环境为development, 生成环境为production**
```bash
bundle exec sidekiq -C config/sidekiq.yml -e production -d
```

#### 14. 启动rails服务
#### (14)启动rails服务
```bash
rails s
```

#### 15. 浏览器访问
#### (15)浏览器访问
在浏览器中输入如下地址访问:
```bash
http://localhost:3000/
```

#### 16. 其他说明
#### (16)其他说明
通过页面注册都第一个用户为平台管理员用户

## 页面展示


Loading…
Cancel
Save