Skip to content

Commit

Permalink
make persistent app route host configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Suraci committed Oct 13, 2013
1 parent 0d2544f commit e1aad7d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (

type IntegrationConfig struct {
AppsDomain string `json:"apps_domain"`
PersistentAppHost string `json:"persistent_app_host"`
}

func Load() (config IntegrationConfig) {
Expand All @@ -30,5 +31,9 @@ func LoadPath(path string) (config IntegrationConfig) {
panic(err)
}

if config.PersistentAppHost == "" {
config.PersistentAppHost = "persistent-app"
}

return
}
2 changes: 1 addition & 1 deletion lifecycle/one_push_many_restarts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (

var _ = Describe("An application that's already been pushed", func() {
BeforeEach(func() {
AppName = "persistent-app"
AppName = IntegrationConfig.PersistentAppHost

Expect(Cf("app", AppName)).To(SayBranches(
cmdtest.ExpectBranch{
Expand Down

0 comments on commit e1aad7d

Please sign in to comment.