Skip to content

Commit 8771fdb

Browse files
committed
Added slev as proper dependency
1 parent 4f3247f commit 8771fdb

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

bin/deploy.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@ function log {
55
}
66

77
log "Building binary"
8-
GOOS=linux GOARCH=amd64 go build -tags 'fts5' -o booksing ./cmd/ui
8+
CGO_ENABLED=1 GOOS=linux GOARCH=amd64 go build -tags 'fts5' -o booksing ./cmd/ui
99

1010

1111
log "copying to sanny"
1212
upx booksing
13-
mv booksing /tmp/booksing
13+
scp booksing sanny:/tmp/booksing
1414

1515
log "Sending restart trigger"
16-
curl localhost:7132/kill
16+
ssh sanny "sudo systemctl restart booksing"
1717

1818
log "Deployed app in ${SECONDS} seconds"
19+
ssh sanny "sudo journalctl -u booksing -f"

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ require (
2929

3030
require (
3131
github.com/gin-contrib/sse v0.1.0 // indirect
32-
github.com/gnur/slev v0.0.0-00010101000000-000000000000 // indirect
32+
github.com/gnur/slev v0.0.0-20211027064700-ceee7aa3e993 // indirect
3333
github.com/go-playground/locales v0.14.0 // indirect
3434
github.com/go-playground/universal-translator v0.18.0 // indirect
3535
github.com/google/uuid v1.3.0 // indirect
@@ -40,6 +40,4 @@ require (
4040
github.com/ugorji/go/codec v1.2.6 // indirect
4141
)
4242

43-
replace github.com/gnur/slev => ../slev
44-
4543
go 1.17

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE
88
github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
99
github.com/gin-gonic/gin v1.7.4 h1:QmUZXrvJ9qZ3GfWvQ+2wnW/1ePrTEJqPKMYEU3lD/DM=
1010
github.com/gin-gonic/gin v1.7.4/go.mod h1:jD2toBW3GZUr5UMcdrwQA10I7RuaFOl/SGeDjXkfUtY=
11+
github.com/gnur/slev v0.0.0-20211027064700-ceee7aa3e993 h1:Z7ZlusLDleDtLuuSNFEeo+NXl/3d72yZF0RsJ11dET8=
12+
github.com/gnur/slev v0.0.0-20211027064700-ceee7aa3e993/go.mod h1:ijGI4dMzcxtLmL/vOUQIMQiMh7XMjb2gwRcyrOs+pX8=
1113
github.com/go-playground/assert/v2 v2.0.1 h1:MsBgLAaY856+nPRTKrp3/OZK38U/wa0CcBYNjji3q3A=
1214
github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
1315
github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8=

0 commit comments

Comments
 (0)