topic/cleaning #4

Merged
shah merged 23 commits from topic/cleaning into master 2022-05-31 14:53:59 +00:00
2 changed files with 4 additions and 3 deletions
Showing only changes of commit e5b366462c - Show all commits

View file

@ -1,7 +1,7 @@
FROM golang:alpine as builder
RUN mkdir -p /go/src/app
WORKDIR /go/src/app/cmd
WORKDIR /go/src/app
ADD . /go/src/app
@ -9,4 +9,4 @@ ADD . /go/src/app
#Run go build -o bins/genityapp
CMD ["/go/src/app/bins/./genityapp"]
CMD ["./bins/genityapp"]

View file

@ -45,7 +45,8 @@ func CloseDB() {
func goDotEnvVariable(key string) string {
// load .env file
err := godotenv.Load("/go/src/app/configs/web.env")
pwd, _ := os.Getwd()
err := godotenv.Load(pwd + "/configs/web.env")
if err != nil {
log.Fatalf(err.Error())