File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -5,14 +5,15 @@ function log {
55}
66
77log " 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
1111log " copying to sanny"
1212upx booksing
13- mv booksing /tmp/booksing
13+ scp booksing sanny: /tmp/booksing
1414
1515log " Sending restart trigger"
16- curl localhost:7132/kill
16+ ssh sanny " sudo systemctl restart booksing "
1717
1818log " Deployed app in ${SECONDS} seconds"
19+ ssh sanny " sudo journalctl -u booksing -f"
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ require (
2929
3030require (
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-
4543go 1.17
Original file line number Diff line number Diff line change @@ -8,6 +8,8 @@ github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE
88github.com/gin-contrib/sse v0.1.0 /go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI =
99github.com/gin-gonic/gin v1.7.4 h1:QmUZXrvJ9qZ3GfWvQ+2wnW/1ePrTEJqPKMYEU3lD/DM =
1010github.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 =
1113github.com/go-playground/assert/v2 v2.0.1 h1:MsBgLAaY856+nPRTKrp3/OZK38U/wa0CcBYNjji3q3A =
1214github.com/go-playground/assert/v2 v2.0.1 /go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4 =
1315github.com/go-playground/locales v0.13.0 /go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8 =
You can’t perform that action at this time.
0 commit comments