@@ -198,7 +198,7 @@ func (m *ContainerManager) idleAppShutdown() {
198198
199199func (m * ContainerManager ) healthChecker () {
200200 for range m .healthCheckTicker .C {
201- err := m .WaitForHealth (m .app . appConfig . Container .StatusHealthAttempts )
201+ err := m .WaitForHealth (m .containerConfig .StatusHealthAttempts )
202202 if err == nil {
203203 continue
204204 }
@@ -243,7 +243,7 @@ func (m *ContainerManager) GetProxyUrl() string {
243243}
244244
245245func (m * ContainerManager ) GetHealthUrl (appHealthUrl string ) string {
246- healthUrl := m .app . appConfig . Container .HealthUrl
246+ healthUrl := m .containerConfig .HealthUrl
247247 if appHealthUrl != "" && appHealthUrl != "/" {
248248 // Health check URL is specified in the app code, use that
249249 healthUrl = appHealthUrl
@@ -418,7 +418,7 @@ func (m *ContainerManager) DevReload(dryRun bool) error {
418418 m .hostPort = containers [0 ].Port
419419
420420 if m .health != "" {
421- err = m .WaitForHealth (m .app . appConfig . Container .HealthAttemptsAfterStartup )
421+ err = m .WaitForHealth (m .containerConfig .HealthAttemptsAfterStartup )
422422 if err != nil {
423423 logs , _ := m .command .GetContainerLogs (m .systemConfig , containerName )
424424 return fmt .Errorf ("error waiting for health: %w. Logs\n %s" , err , logs )
@@ -430,7 +430,7 @@ func (m *ContainerManager) DevReload(dryRun bool) error {
430430
431431func (m * ContainerManager ) WaitForHealth (attempts int ) error {
432432 client := & http.Client {
433- Timeout : time .Duration (m .app . appConfig . Container .HealthTimeoutSecs ) * time .Second ,
433+ Timeout : time .Duration (m .containerConfig .HealthTimeoutSecs ) * time .Second ,
434434 }
435435
436436 var err error
@@ -517,7 +517,7 @@ func (m *ContainerManager) ProdReload(dryRun bool) error {
517517 m .hostPort = containers [0 ].Port
518518
519519 if m .health != "" {
520- err = m .WaitForHealth (m .app . appConfig . Container .HealthAttemptsAfterStartup )
520+ err = m .WaitForHealth (m .containerConfig .HealthAttemptsAfterStartup )
521521 if err != nil {
522522 return fmt .Errorf ("error waiting for health: %w" , err )
523523 }
@@ -586,7 +586,7 @@ func (m *ContainerManager) ProdReload(dryRun bool) error {
586586 m .hostPort = containers [0 ].Port
587587
588588 if m .health != "" {
589- err = m .WaitForHealth (m .app . appConfig . Container .HealthAttemptsAfterStartup )
589+ err = m .WaitForHealth (m .containerConfig .HealthAttemptsAfterStartup )
590590 if err != nil {
591591 return fmt .Errorf ("error waiting for health: %w" , err )
592592 }
0 commit comments