install JRE in heroku

2019-09-04 23:17发布

问题:

I got this error in running heroku run rake sunspot:solr:run

rake aborted!
You need a Java Runtime Environment to run the Solr server

is there a way i can install jre in heroku?

回答1:

You cannot install the JRE on Heroku, and thus you cannot run Solr from a Heroku worker.

If you want Solr in Heroku, you'll have to use the Websolr addon, or start an EC2 server and run your own copy of Solr from there.