InstaClient and Heroku #18
-
I have been unable to launch my Heroku app with instaclient and receive a valid response. I am currently using the following line to create my client I have heard that you need to use the following lines of code... |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm incredibly sorry for the late reply... You also need to do a bit of setup on Heroku:
Finally, you also need to add 2 buildbacks to the Heroku app:
|
Beta Was this translation helpful? Give feedback.
I'm incredibly sorry for the late reply...
I have already setup the instaclient for Heroku, so you can set it directly through the initialization of the InstaClient object
You also need to do a bit of setup on Heroku:
You need to add 2 variables to your Heroku app's secrets via Heroku settings:
heroku config:set GOOGLE_CHROME_BIN=/app/.apt/usr/bin/google_chrome
heroku config:set CHROMEDRIVER_PATH=/app/.chromedriver/bin/chromedriver
Finally, you also need to add 2 buildbacks to the Heroku app:
heroku buildpacks:add --index 1 https://github.com/heroku-buildpack-chromedriver
heroku buildpacks:add --index 2 https://github.com/heroku-buildpack-chromedriver