Commit e13a8d9 1 parent a39958a commit e13a8d9 Copy full SHA for e13a8d9
File tree 1 file changed +9
-2
lines changed
1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change 4
4
build :
5
5
go build -o ./ chronicle
6
6
7
- deploy target :
7
+ deploy_lmdb target :
8
8
docker build -f " compileDockerfile" --platform linux/ amd64 -t chronicle-app .
9
9
docker create --name temp-container --platform linux/ amd64 chronicle-app
10
10
docker cp temp-container:/ app/ chronicle-linux-amd64 ./ chronicle-linux-amd64
11
11
docker rm temp-container
12
12
rsync --progress chronicle-linux-amd64 {{ target}} :chronicle/ chronicle-new
13
13
ssh {{ target}} ' systemctl stop chronicle'
14
14
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