hound icon indicating copy to clipboard operation
hound copied to clipboard

Using hound on Heroku

Open garj opened this issue 6 years ago • 2 comments

I deployed a Phoenix app that is using Hound with chrome driver to Heroku. I've also added the following chrome and chrome driver buildpacks to my Heroku app

  • https://github.com/heroku/heroku-buildpack-google-chrome
  • https://github.com/heroku/heroku-buildpack-chromedriver

my config.exs is as following:

# Configure Hound
config :hound, driver: "chrome_driver"

These steps however does not seem to be sufficient to run Hound on Heroku as I got these errors

2019-09-22T09:44:17.698124+00:00 app[web.1]: 09:44:17.697 [error] GenServer Hound.SessionServer terminating 2019-09-22T09:44:17.698162+00:00 app[web.1]: ** (RuntimeError) could not create a new session: econnrefused, check webdriver is running 2019-09-22T09:44:17.698165+00:00 app[web.1]: (hound) lib/hound/session_server.ex:101: Hound.SessionServer.create_session/2 2019-09-22T09:44:17.698167+00:00 app[web.1]: (hound) lib/hound/session_server.ex:78: Hound.SessionServer.handle_call/3

Can I know if it is possible to run Hound on Heroku at all? Or am I missing some setup required to run it correctly. Please advice. Thanks.

garj avatar Sep 22 '19 15:09 garj

any update on this?

Anonyfox avatar Jan 28 '20 14:01 Anonyfox

Yes, add https://github.com/heroku/heroku-buildpack-chromedriver and https://github.com/heroku/heroku-buildpack-google-chrome

and start chrome driver "/app/.chromedriver/bin/chromedriver"

mbenatti avatar Feb 04 '20 03:02 mbenatti