File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
FROM golang:1.11
2
2
3
3
ENV PORT=8080
4
- ENV DATABASE_URL ="user=kshitij10496 dbname=herculesdb sslmode=disable"
4
+ ENV HERCULES_DATABASEURL ="user=kshitij10496 dbname=herculesdb sslmode=disable"
5
5
6
6
RUN mkdir -p /go/src/github.com/kshitij10496/hercules
7
7
WORKDIR /go/src/github.com/kshitij10496/hercules
Original file line number Diff line number Diff line change 29
29
go-version = " 1.11"
30
30
install = [" ." ] # Explicit is better than implicit.
31
31
ensure = true
32
+
32
33
33
34
[[constraint ]]
34
35
name = " github.com/lib/pq"
Original file line number Diff line number Diff line change @@ -3,5 +3,5 @@ package common
3
3
// Config represents configuration environment to running application
4
4
type Config struct {
5
5
DatabaseURL string `required:"true" desc:"Connection String, for more info see: https://godoc.org/github.com/lib/pq"`
6
- Port string `default:"8080" desc:"Application listen port"`
6
+ Port string `envconfig:"PORT" default:"8080" desc:"Application listen port"`
7
7
}
You can’t perform that action at this time.
0 commit comments