-
Ruby 2.4.5
-
Rails ~> 5.2
-
MySql ~> 5.6
-
Redis 5+
-
NodeJS > 13.0.0
git clone -b standalone https://git.trustie.net/jasder/forgeplus.git
bundle install进入项目根目录执行一下命令:
cp config/configuration.yml.example config/configuration.yml
cp config/database.yml.example config/database.yml
touch config/redis.yml
touch config/elasticsearch.yml数据库配置信息请查看/config/database.yml文件, 项目默认采用mysql数据库, 如需更改,请自行修改配置信息, 默认配置如下:
default: &default
adapter: mysql2
host: 127.0.0.1
encoding: utf8
username: root
password: 123456如需要部署自己的gitea平台,请参考gitea官方平台:https://docs.gitea.io/zh-cn/install-from-binary/
因目前gitea平台api受限,暂时推荐从forge平台获取gitea部署文件进行部署:https://forgeplus.trustie.net/projects/Trustie/gitea-binary
- 部署gitea服务,并注册root账户
- 修改forge平台的 config/configuration.yml中的gitea服务指向地址,如:
gitea:
access_key_id: 'root'
access_key_secret: 'password'
domain: 'http://www.gitea.example.com'
base_url: '/api/v1'请自行搜索各平台如何安装部署redis环境
rails db:createbundle exec rake sync_table_structure:import_csv开发环境为development, 生成环境为production
rails db:migrate RAILS_ENV=development将前端代码克隆到public/react目录下,目录结构应该是: public/react/build
git clone -b standalone https://git.trustie.net/jasder/build.gitredis-server&开发环境为development, 生成环境为production
bundle exec sidekiq -C config/sidekiq.yml -e production -drails s在浏览器中输入如下地址访问:
http://localhost:3000/