Skip to content

Commit

Permalink
specify port on heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
dmonay committed Feb 22, 2015
1 parent c493716 commit 780166c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion handlers/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,12 @@ func Run(cfg common.Config) error {
r.POST("/create/task/:organization/:objective/:kr", doWorkResource.CreateTask)
r.POST("/update/task/properties/:organization/:treeid/:objective/:kr/:task", doWorkResource.UpdateTaskProperties)

r.Run(cfg.SvcHost)
port := os.Getenv("PORT")
if port == "" {
port = cfg.SvcHost
}
fmt.Println("port: ", port)
r.Run(port)

return nil
}
Expand Down
Binary file modified okra
Binary file not shown.

0 comments on commit 780166c

Please sign in to comment.