You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
学 赵 abc556272e 更新版本 11 months ago
build 寄售库库存合计分页导出修改为全部导出 1 year ago
code 更新版本 11 months ago
docs update 1 year ago
.drone.yml 更新版本 11 months ago
.gitattributes 添加根目录git过滤文件 1 year ago
.gitignore 提交 1 year ago
MinIO.zip update 1 year ago
README.md 更新启动脚本和部署文档 12 months ago

README.md

项目说明

提交规范

默认进行自动构建、发布到MinIO并自动部署到测试服务器

  1. 提交前确保先拉取更新
  2. 提交时确保编译通过,提交后检查CI服务器编译是否成功
  3. 不需要自动构建和部署的,在提交信息中添加 [CI SKIP]
  4. 针对特定问题的解决,提交信息中添加问题编号

开发环境配置

配置文件

在项目 SettleAccount.HttpApi.Host 下添加开发配置文件 appsettings.development.json

{
  "ConnectionStrings": {
    "Default": "Server=.;Database=BJABP;User ID=sa;Password=aA123456!;Trusted_Connection=False;TrustServerCertificate=True",
    "SettleAccountService": "Server=.;Database=BQ_SA;User ID=sa;Password=aA123456!;Trusted_Connection=False;TrustServerCertificate=True;"
  },

  "AuthServer": {
    "Authority": "http://localhost:44378",
    "ClientId": "basic-web",
    "ClientSecret": "1q2w3e*"
  },
  "MinIO": {
    "EndPoint": "localhost:16084"
  }
}

文件存储

解压 MinIO.zip 并执行其中的 start.cmd

数据库

本地安装 SQL Server 2016 + ,在程序包管理器控制台中切换项目并设置为启动项目后执行 EF Core 数据迁移命令

#AuthServer.Host
update-database -context AuthServerDbContext -connection "Server=.;Database=BJABP;User ID=sa;Password=aA123456!;Trusted_Connection=False;TrustServerCertificate=True"
#BaseService.EntityFrameworkCore
update-database -context BaseServiceMigrationDbContext -connection "Server=.;Database=BJABP;User ID=sa;Password=aA123456!;Trusted_Connection=False;TrustServerCertificate=True"
#SettleAccount.EntityFrameworkCore
update-database -context SettleAccountDbContext -connection "Server=.;Database=BQ_SA;User ID=sa;Password=aA123456!;Trusted_Connection=False;TrustServerCertificate=True;"

启动调试

入口项目:SettleAccount.HttpApi.Host

部署

  1. 部署到测试服务器时正常提交,appsettings.json 中默认为测试服务器配置,本地使用 appsettings.development.json 进行配置
  2. 部署到生产正常提交,生产环境使用 appsettings.production.json 进行配置
  3. appsettings.production.json 和 excle 导出模板目前由运维进行管理
  4. 部署到 windows server 时使用计划任务设置开机启动