Skip to content
This repository has been archived by the owner on Feb 24, 2024. It is now read-only.

Commit

Permalink
PORT should be settable via an ENV var closes #47
Browse files Browse the repository at this point in the history
  • Loading branch information
markbates committed Dec 12, 2016
1 parent d6a6cfa commit c2ef034
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion buffalo/cmd/app_generators.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ import (
)
func main() {
log.Fatal(http.ListenAndServe(":3000", actions.App()))
port := defaults.String(os.Getenv("PORT"), "3000")
log.Fatal(http.ListenAndServe(fmt.Sprintf(":%s", port), actions.App()))
}
`
Expand Down

0 comments on commit c2ef034

Please sign in to comment.