mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 03:40:49 +08:00
FIX merge develop branch
This commit is contained in:
58
README.md
58
README.md
@@ -1,4 +1,4 @@
|
||||
Trustie (确实)是一个以大众化协同开发、开放式资源共享、持续性可信评估为核心机理,面向高校创新实践的在线协作平台
|
||||
Trustie (确实)是一个以大众化协同开发、开放式资源共享、持续性可信评估为核心机理,面向高校创新实践的在线协作平台
|
||||
|
||||
## 特性
|
||||
|
||||
@@ -11,13 +11,13 @@ Trustie (确实)是一个以大众化协同开发、开放式资源共享、
|
||||
## 部署
|
||||
|
||||
|
||||
#### 1. 安装依赖包
|
||||
### 1. 安装依赖包
|
||||
|
||||
```bash
|
||||
bundle install
|
||||
```
|
||||
|
||||
#### 2. 配置初始化文件
|
||||
### 2. 配置初始化文件
|
||||
进入项目根目录执行一下命令:
|
||||
|
||||
```bash
|
||||
@@ -27,38 +27,71 @@ touch config/redis.yml
|
||||
touch config/elasticsearch.yml
|
||||
```
|
||||
|
||||
#### 3. 创建数据库
|
||||
### 3. 配置gitea服务(可选)
|
||||
**如需要部署自己的gitea平台,请参考gitea官方平台:https://docs.gitea.io/zh-cn/install-from-binary/**
|
||||
|
||||
**因目前gitea平台api受限,暂时推荐从forge平台获取gitea部署文件进行部署:https://forgeplus.trustie.net/projects/6070/coders**
|
||||
|
||||
#### 配置gitea服务步骤
|
||||
1. 部署gitea服务,并注册root账户
|
||||
2. 修改forge平台的 config/configuration.yml中的gitea服务指向地址,如:
|
||||
|
||||
```ruby
|
||||
gitea:
|
||||
access_key_id: 'root'
|
||||
access_key_secret: 'password'
|
||||
domain: 'http://www.gitea.example.com'
|
||||
base_url: '/api/v1'
|
||||
```
|
||||
|
||||
### 4. 安装redis环境
|
||||
**请自行搜索各平台如何安装部署redis环境**
|
||||
|
||||
|
||||
### 5. 创建数据库
|
||||
|
||||
```bash
|
||||
rails db:create
|
||||
```
|
||||
|
||||
#### 4. 导入数据表结构
|
||||
### 6. 导入数据表结构
|
||||
|
||||
```bash
|
||||
bundle exec rake sync_table_structure:import_csv
|
||||
```
|
||||
|
||||
#### 5. 执行migrate迁移文件
|
||||
### 7. 执行migrate迁移文件
|
||||
**开发环境为development, 生成环境为production**
|
||||
```bash
|
||||
rails db:migrate RAILS_ENV=development
|
||||
```
|
||||
|
||||
#### 6. 启动rails服务
|
||||
### 8. 启动redis(此处已mac系统为例)
|
||||
```bash
|
||||
redis-server&
|
||||
```
|
||||
|
||||
### 9. 启动sidekiq
|
||||
**开发环境为development, 生成环境为production**
|
||||
```bash
|
||||
bundle exec sidekiq -C config/sidekiq.yml -e production -d
|
||||
```
|
||||
|
||||
### 10. 启动rails服务
|
||||
```bash
|
||||
rails s
|
||||
```
|
||||
|
||||
#### 7. 浏览器访问
|
||||
### 11. 浏览器访问
|
||||
在浏览器中输入如下地址访问:
|
||||
```bash
|
||||
http://localhost:3000/projects
|
||||
http://localhost:3000/
|
||||
```
|
||||
|
||||
|
||||
## 页面展示
|
||||
|
||||
- 代码库
|
||||
- 代码库
|
||||
|
||||

|
||||
|
||||
@@ -70,13 +103,10 @@ http://localhost:3000/projects
|
||||
|
||||

|
||||
|
||||
- 任务指派
|
||||
- 任务指派
|
||||
|
||||

|
||||
|
||||
- 里程碑
|
||||
|
||||

|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user