Error message
[STG] OUT -----> Installing dependencies using 1.6.3 [STG] OUT Purging Cache. Changing stack from cedar to [STG] OUT Fixing nokogiri install. Clearing bundler cache. [STG] OUT See https://github.com/sparklemotion/nokogiri/issues/923. [STG] ERR /usr/lib/ruby/1.9.1/pathname.rb:308:in `initialize': can't convert nil into String (TypeError)
To avoid the error displayed above, set an environment variable called `STACK` to `` (i.e. an empty string). There are two ways that this can be done.
cf set-env <app-name> STACK ""
--- applications: - name: <app-name> memory: <memory-limit> path: . env: STACK: ""
This works to resolve the issue as the presence of the `STACK` environment variable causes the build pack to avoid the code path which triggers this error.