Skip to content

Commit

Permalink
Include host arg in custom Dora start command
Browse files Browse the repository at this point in the history
- rackup defaults to binding to localhost which does not
work with the latest Ruby (rackup buildpack?) Cloud Native Buildpack
on cf-for-k8s
- the buildpack provides a start command that specifies 0.0.0.0 as the
host, so this change specifies that host in the custom command we set
in BARAS

Authored-by: Tim Downey <tdowney@vmware.com>
  • Loading branch information
tcdowney committed Jul 27, 2021
1 parent e1180f8 commit 13121d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions baras/revisions.go
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ var _ = Describe("revisions", func() {
)

BeforeEach(func() {
newCommand = "TEST_VAR=real bundle exec rackup config.ru -p $PORT"
newCommand = "TEST_VAR=real bundle exec rackup config.ru -p $PORT -o 0.0.0.0"
SetCommandOnProcess(appGUID, "web", newCommand)
})

Expand Down Expand Up @@ -419,7 +419,7 @@ var _ = Describe("revisions", func() {
)

BeforeEach(func() {
newCommand = "TEST_VAR=real bundle exec rackup config.ru -p $PORT"
newCommand = "TEST_VAR=real bundle exec rackup config.ru -p $PORT -o 0.0.0.0"
SetCommandOnProcess(appGUID, "web", newCommand)
UpdateEnvironmentVariables(appGUID, `{"foo":"deffo-not-bar"}`)
zdtRestartAndWait(appGUID)
Expand Down

0 comments on commit 13121d6

Please sign in to comment.