Skip to content
This repository was archived by the owner on Apr 19, 2023. It is now read-only.

Commit 475cf3e

Browse files
committed
update go-on-rails to v0.3.1
1 parent 808f7f4 commit 475cf3e

File tree

8 files changed

+576
-501
lines changed

8 files changed

+576
-501
lines changed

go_app/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
FROM golang:1.9.2 as builder
66
WORKDIR /root/
77
COPY . /root/
8-
RUN perl -pi -e "s/tcp\(.*?:/tcp\(database:/; s/host=\S+? /host=database /" models/db.go
8+
RUN perl -pi -e "s/tcp\(.*?:/tcp\(db:/; s/host=\S+? /host=db /" models/db.go
99
RUN make deps
1010
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o myapp .
1111

go_app/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ build: $(MYAPP)
1515
deps:
1616
$(GO) get -u github.com/jmoiron/sqlx \
1717
github.com/gin-gonic/gin \
18-
github.com/goonr/go-sqlite3 \
18+
github.com/railstack/go-sqlite3 \
1919
github.com/go-sql-driver/mysql \
2020
github.com/lib/pq \
2121
github.com/asaskevich/govalidator
2222

2323
test:
24-
$(GO) test -v ./models
24+
$(GO) test -v ./...
2525

2626
run: $(MYAPP)
2727
./$(MYAPP)

go_app/controllers/home_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ func HomeHandler(c *gin.Context) {
2323
GolangVer string
2424
}
2525

26-
gorVer := "0.3.0"
27-
golangVer := "go version go1.9.2 darwin/amd64"
26+
gorVer := "0.3.1"
27+
golangVer := "go version go1.11.4 darwin/amd64"
2828

2929
envs := Envs{GoOnRailsVer: gorVer, GolangVer: golangVer}
3030
c.HTML(http.StatusOK, "index.tmpl", envs)

0 commit comments

Comments
 (0)