资源服务

shao 4ad400d48d DROS 1 dzień temu
cmd bc75299535 patient_type 1 tydzień temu
common 4ad400d48d DROS 1 dzień temu
config 4ad400d48d DROS 1 dzień temu
logger de59f229e3 grpc改造 1 tydzień temu
models bc75299535 patient_type 1 tydzień temu
rpc_idl @ fd1299aaac bc75299535 patient_type 1 tydzień temu
service 4ad400d48d DROS 1 dzień temu
static de59f229e3 grpc改造 1 tydzień temu
.gitignore 91fc9d0cbe first commit 2 tygodni temu
.gitmodules a26eea56ad submodule update 1 tydzień temu
Makefile 400350a698 init config_items table 2 tygodni temu
README.md be26042e4a 避免明文存储数据库密码 2 tygodni temu
go.mod bc75299535 patient_type 1 tydzień temu
go.sum de50521992 MWL_Modality 1 tydzień temu
main.go 91fc9d0cbe first commit 2 tygodni temu

README.md

DR Resource Server

env

  • golang 1.24
  • postgres14

run

go run main.go run

deploy

# vim /etc/systemd/system/resource-server.service
[Unit]
Description=dr resource service
After=network.target
 
[Service]
Type=simple
WorkingDirectory=xxx/DRResourceServer
ExecStart=xxx/DRResourceServer/resource-server run
 
[Install]
WantedBy=multi-user.target

# 重新加载systemd配置
sudo systemctl daemon-load

# 启动服务
sudo systemctl restart resource-server.service