From a4cd6e4dc7c3d865e1f784c048864b3eb5f2cc7e Mon Sep 17 00:00:00 2001 From: Sylvain Date: Tue, 7 Apr 2020 15:19:41 +0200 Subject: [PATCH] [bug] unable to access health endpoint --- CHANGELOG.md | 1 + Procfile | 2 +- app/services/health_service.rb | 2 +- env.example | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 74c05f070..8624f006c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ - Fix a bug: default nginx configuration does not allows secure cookies - Fix a bug: in-context translation is loading invalid locale for MessageFormat - Fix a bug: invalid link to upgrade procedure +- Fix a bug: unable to access health endpoint ## v4.3.3 2020 April 1st diff --git a/Procfile b/Procfile index 05816cdf6..62d2b1e51 100644 --- a/Procfile +++ b/Procfile @@ -1,3 +1,3 @@ web: bundle exec rails server puma -p $PORT worker: bundle exec sidekiq -C ./config/sidekiq.yml -#mail: node_modules/maildev/bin/maildev --ip 0.0.0.0 +mail: node_modules/maildev/bin/maildev --ip 0.0.0.0 diff --git a/app/services/health_service.rb b/app/services/health_service.rb index 9148d22a6..4339b525c 100644 --- a/app/services/health_service.rb +++ b/app/services/health_service.rb @@ -28,7 +28,7 @@ class HealthService end def self.migrations? - !ActiveRecord::Migrator.needs_migration? + !ActiveRecord::Base.connection.migration_context.needs_migration? end def self.row_stats diff --git a/env.example b/env.example index 0a2d05588..e16bbf518 100644 --- a/env.example +++ b/env.example @@ -58,7 +58,7 @@ RECAPTCHA_SECRET_KEY= DISQUS_SHORTNAME= # Twitter sharing -TWITTER_NAME=FablabGrenoble +TWITTER_NAME=Fab_Manager # Facebook sharing FACEBOOK_APP_ID=