2
我已經使用Tire在我的Rails應用程序中添加了elasticsearch,如this Railscast中所述。Elasticsearch在嘗試索引Heroku時返回504
我試着用盆景插件部署到Heroku。以下this tutorial還利用信息w基於this question後,我試着運行這個命令:
heroku run rake environment tire:import CLASS=Document FORCE=true
(Document
,當然,我的模型的名稱。)
但我不斷收到這錯誤信息:
Running `rake environment tire:import CLASS=Document FORCE=true` attached to terminal... up, run.4773
[IMPORT] Deleting index 'documents'
[IMPORT] Creating index 'documents' with mapping:
{"document":{"properties":{}}}
[ERROR] There has been an error when creating the index -- Elasticsearch returned:
504 :
我在做什麼錯?