1. 按照原项目的要求搭建环境（这里我们构建的是development环境）：
    https://forgeplus.trustie.net/projects/jasder/forgeplus
2. 在“配置gitea服务步骤”中，需要domain要设置为http://127.0.0.1，然后在mysql中创建gitea数据库，之后使用命令nohup ./gitea web > gitea.log 2>&1 & 启动了gitea服务后，通过页面配置gitea的domain和base，其中domain配置为IP地址，base配置为http://IP，这样才能后续创建项目的时候页面显示的clone地址正确
    注意：
    A. 这里如果要重启gitea服务，不能只删除数据库，要删除gitea启动时自动生成的data/custom/log文件夹，这样才能实现初始化
    B. 如果重新创建了用户后，由于Trustie debug开发环境下有默认的调试用户 (forgeplus/app/controllers/application_controller.rb: user =  User.find 36)，因此创建的测试用户需要在users表中有36号ID，这样我们在运行起来Trustie并注册用户后，需要手工将forge_development数据库users表中的相应用户修改为36号ID
3. redis安装一定要注意版本，不能使用4+版本，而应该使用5+或者6+
4. 8、9、10三条数据库命令需要一气呵成，8和9执行的时候会报错，但是不影响第10步的执行
5. 第14步中rails服务的启动命令为：nohup rails s -e production -p 3001 -b 0.0.0.0 > rails-s.log 2>&1 &
(nohup rails s -p 3001 -b 0.0.0.0 > rails-s.log 2>&1 &)
    注意：
    A. 这里要bind 0.0.0.0，否则外部访问不到，做本机前端测试的时候就没法用了
    B. -p指定的端口一定要是被开放的，阿里云服务器有端口限制
    C. 这里的 -p端口对应前端代码的两个位置相应修改：
        1) src/AppConfig.js: var proxy = "http://106.75.135.128:3001";
        2) package.json: "proxy": "http://106.75.135.128:3001",
6. 前端代码由于是测试版，我们这里并没有用说明文档中介绍的“先build后转移到public/react目录下的方法”，这里我们直接使用node start命令启动了对应的接口
    注意：前端代码默认是3007端口，对应文档中三个位置：
        1) src/AppConfig.js: if (window.location.port !== "3007") (2处)
        2) package.json: "port": "3007"
7. 前端服务构建的步骤需要查看下面项目的说明文档：
    https://forgeplus.trustie.net/projects/jasder/forgeplus-react
   注意：
   A. nodejs需要8.16.0
   B. 使用nvm管理node版本
   C. 开发过程中API请求地址需要与后台代码forgeplus中的route.rb中的路由对应起来
   D. 运行服务命令： nohup npm start > npm-start.log 2>&1 &
8. gitea的二进制执行文件最新的托管版本库位于：
    https://forgeplus.trustie.net/projects/Trustie/gitea-binary
9. 更新前端build文件时，报unique_head.rb先关错误，删除app/docs文件夹即可
10. 如何用nginx启动 
    #更新代码后 平滑重启nginx+passenger
    /opt/nginx/sbin/nginx -s reload
    #开机启动已经加在/etc/rc.local

11. 启动区块链服务命令
web: go run /root/trustie-blockchain/trustie-fisco-bcos/main.go
blockchain: /root/trustie-blockchain/fisco/nodes/127.0.0.1/stop_all.sh  and  /root/trustie-blockchain/fisco/nodes/127.0.0.1/start_all.sh