refactor(LogicServer): 添加 start.sh 脚本并更新 Docker Compose 配置
- 新增 start.sh 脚本用于启动 Logic 服务器 - 更新 docker-compose.yml 文件,将 entrypoint 改为 start.sh - 优化服务器启动流程,提高自动化程度
This commit is contained in:
		
							
								
								
									
										11
									
								
								LogicServer/start.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								LogicServer/start.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | |||||||
|  | #!/bin/bash | ||||||
|  | cd $(cd "$(dirname "$0")" && pwd) | ||||||
|  | path=`pwd` | ||||||
|  | ./stop.sh | ||||||
|  |  | ||||||
|  | echo "======================【启动】========================" | ||||||
|  | datetime=`date "+%Y-%m-%d.%H:%M:%S"` | ||||||
|  |  | ||||||
|  | echo "["$datetime"] 正在启动 Logic 服务器 [logicserver_r]..." | ||||||
|  |  | ||||||
|  | $path/LogicServer/logicserver_r $path/LogicServer/LogicServerLinux.txt | ||||||
| @@ -23,7 +23,7 @@ services: | |||||||
|     volumes: |     volumes: | ||||||
|       - ./LogicServer:/data/server/s1/LogicServer |       - ./LogicServer:/data/server/s1/LogicServer | ||||||
|       - ./wch:/etc/yum/wch |       - ./wch:/etc/yum/wch | ||||||
|     entrypoint: "/data/server/s1/LogicServer/run.sh" |     entrypoint: "/data/server/s1/LogicServer/start.sh" | ||||||
|     network_mode: "host" |     network_mode: "host" | ||||||
|     restart: unless-stopped |     restart: unless-stopped | ||||||
|     environment: |     environment: | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user