Skip to content

Commit e13a8d9

Browse files
committed
Update justfile with a plain deploy task
1 parent a39958a commit e13a8d9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

justfile

+9-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,19 @@ dev:
44
build:
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'

0 commit comments

Comments
 (0)