File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44build :
55 go build -o ./ chronicle
66
7- deploy target :
7+ deploy_lmdb target :
88 docker build -f " compileDockerfile" --platform linux/ amd64 -t chronicle-app .
99 docker create --name temp-container --platform linux/ amd64 chronicle-app
1010 docker cp temp-container:/ app/ chronicle-linux-amd64 ./ chronicle-linux-amd64
1111 docker rm temp-container
1212 rsync --progress chronicle-linux-amd64 {{ target}} :chronicle/ chronicle-new
1313 ssh {{ target}} ' systemctl stop chronicle'
1414 ssh {{ target}} ' mv chronicle/chronicle-new chronicle/chronicle'
15- ssh {{ target}} ' systemctl start chronicle'
15+ ssh {{ target}} ' systemctl start chronicle'
16+
17+ deploy target :
18+ GOOS=linux GOARCH=amd64 go build -o chronicle-linux-amd64
19+ rsync --progress chronicle-linux-amd64 {{ target}} :chronicle/ chronicle-new
20+ ssh {{ target}} ' systemctl stop chronicle'
21+ ssh {{ target}} ' mv chronicle/chronicle-new chronicle/chronicle'
22+ ssh {{ target}} ' systemctl start chronicle'
You can’t perform that action at this time.
0 commit comments