Getting Chrome up and running on Heroku!
This is a sister repo of jormon/minimal-chrome-on-heroku-xvfb which operates on the cedar-14 stack using xvfb.
I tried to keep the number of gems as minimal as possible, though I did include Thor for potential future uses with different configuration flags, etc.
Here are the rough needs to get this to work / notes:
new_browsermethod if you're following along at home.
You can use the following button to deploy this to a test instance and check it out yourself!
Once you deploy, from your commandline, simply run the following command with heroku toolbelt:
$ heroku run "thor runner:website"
The package also includes a test script to show how saving downloads from chrome can run. The thor task is
runner:download, but I would advise invoking it like so:
$ heroku run bash [heroku]$ bundle exec thor runner:download [heroku]$ ls tmp/downloads # expect to see the rfc file here
Copy the snippet above into CLI.