heroku / heroku-buildpack-google-chrome

Run (headless) Google Chrome on Heroku
296 stars 365 forks source link

Can't find CHROME_BIN #75

Closed pherris closed 5 years ago

pherris commented 5 years ago

I configured the CI to use this buildpack:

{
  "environments": {
    "test": {
      "buildpacks": [
        {
          "url": "https://github.com/heroku/heroku-buildpack-ruby"
        },
        {
          "url": "https://github.com/heroku/heroku-buildpack-nodejs"
        },
        {
          "url": "https://github.com/heroku/heroku-buildpack-google-chrome"
        }
      ]
    }
  }
}

and updated my package.json command to account for the different environment variable: CHROME_BIN=$GOOGLE_CHROME_BIN ng test --browsers=ChromeHeadlessCI --watch=false --code-coverage=false but I still get the error:

       All files pass linting.
       $ CHROME_BIN=$GOOGLE_CHROME_BIN ng test --browsers=ChromeHeadlessCI --watch=false --code-coverage=false
       17 07 2019 23:02:08.016:INFO [karma-server]: Karma v4.1.0 server started at http://0.0.0.0:9876/
       17 07 2019 23:02:08.033:INFO [launcher]: Launching browsers ChromeHeadlessCI with concurrency unlimited
       17 07 2019 23:02:08.069:INFO [launcher]: Starting browser ChromeHeadless
       17 07 2019 23:02:08.070:ERROR [launcher]: No binary for ChromeHeadless browser on your platform.
         Please, set "CHROME_BIN" env variable.

I am testing from my local with heroku ci:debug.

When I Cmd+c the hung process, I'm left on the server. If i run $ export I see no env variables for GOOGLE_X.

pherris commented 5 years ago

somehow opened two - see #76