Skip to content
This repository has been archived by the owner on Jan 28, 2022. It is now read-only.

Commit

Permalink
Fix service forwarding bug using new forge feature
Browse files Browse the repository at this point in the history
  • Loading branch information
sclevine committed Jun 28, 2018
1 parent ddd461e commit aaf6034
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
15 changes: 8 additions & 7 deletions cf/cmd/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,14 @@ func (r *Run) Run(args []string) error {
waiter, waiterDone := newWaiter(5 * time.Second)
defer waiterDone()
health, done, id, err := r.Forwarder.Forward(&forge.ForwardConfig{
AppName: appConfig.Name,
Stack: NetworkStack,
Color: color.GreenString,
Details: forwardConfig,
HostIP: netConfig.HostIP,
HostPort: netConfig.HostPort,
Wait: waiter,
AppName: appConfig.Name,
Stack: NetworkStack,
Color: color.GreenString,
Details: forwardConfig,
ContainerPort: netConfig.ContainerPort,
HostIP: netConfig.HostIP,
HostPort: netConfig.HostPort,
Wait: waiter,
})
if err != nil {
return err
Expand Down
1 change: 1 addition & 0 deletions cf/cmd/run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ var _ = Describe("Run", func() {
Expect(config.Stack).To(Equal(NetworkStack))
Expect(config.Color("some-text")).To(Equal(color.GreenString("some-text")))
Expect(config.Details).To(Equal(forwardConfig))
Expect(config.ContainerPort).To(Equal("8080"))
Expect(config.HostIP).To(Equal("0.0.0.0"))
Expect(config.HostPort).To(Equal("3000"))
Eventually(config.Wait).Should(Receive())
Expand Down

0 comments on commit aaf6034

Please sign in to comment.