mirror of
				https://github.com/bjdgyc/anylink.git
				synced 2025-10-31 16:43:28 +08:00 
			
		
		
		
	添加打包文件
This commit is contained in:
		
							
								
								
									
										21
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										21
									
								
								README.md
									
									
									
									
									
								
							| @@ -28,28 +28,13 @@ AnyLink 服务端仅在CentOS7测试通过,如需要安装在其他系统, | ||||
| > 升级 go version = 1.16 | ||||
|  | ||||
| ```shell | ||||
| rootPath=`pwd` | ||||
|  | ||||
| git clone https://github.com/bjdgyc/anylink.git | ||||
| git clone https://github.com/bjdgyc/anylink-web.git | ||||
|  | ||||
| cd $rootPath/anylink-web | ||||
| npm install | ||||
| npm run build | ||||
|  | ||||
| cd $rootPath/anylink | ||||
| cp -r $rootPath/anylink-web/ui . | ||||
| go build -o anylink -ldflags "-X main.COMMIT_ID=`git rev-parse HEAD`" | ||||
|  | ||||
| #整理部署文件 | ||||
| mkdir $rootPath/anylink-deploy | ||||
| cd $rootPath/anylink-deploy | ||||
|  | ||||
| cp -r $rootPath/anylink/anylink . | ||||
| cp -r $rootPath/anylink/conf . | ||||
| cp -r $rootPath/anylink/downfiles . | ||||
| cd anylink | ||||
| sh deploy.sh | ||||
|  | ||||
| #注意使用root权限运行 | ||||
| cd anylink-deploy | ||||
| sudo ./anylink -conf="conf/server.toml" | ||||
| ``` | ||||
|  | ||||
|   | ||||
| @@ -2,5 +2,5 @@ package base | ||||
|  | ||||
| const ( | ||||
| 	APP_NAME = "AnyLink" | ||||
| 	APP_VER  = "0.0.5" | ||||
| 	APP_VER  = "0.0.6" | ||||
| ) | ||||
|   | ||||
							
								
								
									
										23
									
								
								deploy.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								deploy.sh
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,23 @@ | ||||
| #!/usr/bin/env bash | ||||
|  | ||||
| git clone https://github.com/bjdgyc/anylink-web.git | ||||
|  | ||||
| cd anylink-web | ||||
| npm install | ||||
| npm run build | ||||
|  | ||||
| cd ../ | ||||
| cp -r anylink-web/ui . | ||||
| go build -o anylink -ldflags "-X main.COMMIT_ID=`git rev-parse HEAD`" | ||||
|  | ||||
| #整理部署文件 | ||||
| mkdir anylink-deploy | ||||
| cd anylink-deploy | ||||
|  | ||||
| cp -r ../anylink . | ||||
| cp -r ../conf . | ||||
| cp -r ../down_files . | ||||
|  | ||||
| #注意使用root权限运行 | ||||
| #sudo ./anylink -conf="conf/server.toml" | ||||
|  | ||||
		Reference in New Issue
	
	Block a user