Skip to content

Commit 019fb75

Browse files
committed
fix: adjust healthchek config
1 parent 196a83c commit 019fb75

3 files changed

Lines changed: 4 additions & 23 deletions

File tree

config/routes.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
mount Rswag::Ui::Engine => '/api-docs'
66
mount Rswag::Api::Engine => '/api-docs'
77

8-
# Health check endpoints
8+
# Health check endpoints (Railway external health check)
9+
get 'health' => proc { [200, { 'Content-Type' => 'application/json' }, ['{"status":"ok","service":"ProStaff API"}']] }
910
get 'up' => 'rails/health#show', as: :rails_health_check
10-
get 'health' => 'health#index' # Simple health without DB check
1111
get 'health/detailed' => 'health#show' # Detailed health with DB check
1212

1313
# SEO - Sitemap

railway.json

Lines changed: 0 additions & 19 deletions
This file was deleted.

railway.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ dockerfilePath = "Dockerfile.production"
77
startCommand = "bundle exec puma -C config/puma.rb"
88
healthcheckPath = "/health"
99
healthcheckTimeout = 300
10-
restartPolicyType = "on_failure"
11-
restartPolicyMaxRetries = 3
10+
restartPolicyType = "ON_FAILURE"
11+
restartPolicyMaxRetries = 10

0 commit comments

Comments
 (0)