I've added elasticsearch to my Rails app using Tire as outlined in this Railscast.
I've tried to deploy to Heroku with Bonsai add-on. After following this tutorial and also using information w Based on this question, I've tried running this command:
heroku run rake environment tire:import CLASS=Document FORCE=true
(Document
is, of course, the name of my model.)
But I keep getting this error message:
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 :
What am I doing wrong?