Skip to content

Commit

Permalink
Merge pull request #7 from gazes-media/main
Browse files Browse the repository at this point in the history
Update that fucking thing. FINALLY
  • Loading branch information
garder500 authored Dec 17, 2023
2 parents e85fd56 + da7eb34 commit f68a2ec
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,5 @@ COPY --from=build /app/server /app/
EXPOSE 2634

WORKDIR /app
# Create a default .env file if one does not exist.
RUN if [ ! -f .env ]; then echo "PORT=2634" > .env; fi
# What the container should run when it is started.
ENTRYPOINT [ "./server" ]
2 changes: 1 addition & 1 deletion src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func init() {

err := godotenv.Load(".env")
if err != nil {
log.Panicf("Error loading .env file: %s", err)
log.Printf("Error loading .env file: %s", err)
}

utils.ValidateEnvVars([]string{"JWT_SECRET", "PORT", "PASSWORD_SALT"})
Expand Down

0 comments on commit f68a2ec

Please sign in to comment.