Skip to content

Commit 52832fe

Browse files
committed
Fix: 本番環境では環境変数BONSAI_URLの値を使う
参考: https://docs.bonsai.io/article/97-ruby-on-rails
1 parent 2c4d8ab commit 52832fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
config = {
2-
url: ENV["ELASTICSEARCH_HOSTS"] || "http://localhost:9200",
2+
url: ENV["BONSAI_URL"] || ENV["ELASTICSEARCH_HOSTS"] || "http://localhost:9200",
33
}
44
Elasticsearch::Model.client = Elasticsearch::Client.new(config)

0 commit comments

Comments
 (0)