Skip to content

Commit

Permalink
Str8 2 mayne
Browse files Browse the repository at this point in the history
  • Loading branch information
caspereijkens committed Nov 25, 2024
1 parent 84d6021 commit 8d11200
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,5 @@ COPY --from=build /workspace/bin/web-app /usr/local/bin/web-app
COPY --from=build /workspace/static ./static/
COPY --from=build /workspace/data ./data/

ENV SERVER_PORT=80
EXPOSE 80
ENTRYPOINT ["/usr/local/bin/web-app", "--port 80"]
1 change: 1 addition & 0 deletions go-app-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ services:
environment:
- VIRTUAL_HOST=yuanyuanzhou.nl
- LETSENCRYPT_HOST=yuanyuanzhou.nl
- SERVER_PORT=:80
volumes:
- db_data:/app/data
ports:
Expand Down
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,9 @@ func splitPDFByPage(inputPath string, outputDir string) error {
func determinePort() string {
port, ok := os.LookupEnv("SERVER_PORT")
if !ok {
port = ":8080"
port = "8080"
}
return port
return ":" + port
}

func configDatabase() error {
Expand Down

0 comments on commit 8d11200

Please sign in to comment.