Skip to content

Commit

Permalink
起動時にエラー
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Mar 8, 2024
1 parent 03674e3 commit 31be085
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions config/initializers/chewy.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require_relative '../../app/lib/chewy_config'

enabled = ENV['ES_ENABLED'] == 'true'
host = ENV.fetch('ES_HOST') { 'localhost' }
port = ENV.fetch('ES_PORT') { 9200 }
Expand Down Expand Up @@ -37,3 +39,6 @@
# Mastodon is run with hidden services enabled, because
# Elasticsearch is *not* supposed to be accessed through a proxy
Faraday.ignore_env_proxy = true

# Check Elasticsearch config file version
ChewyConfig.instance.accounts if enabled

0 comments on commit 31be085

Please sign in to comment.