phantomjs-gem icon indicating copy to clipboard operation
phantomjs-gem copied to clipboard

Document how to customize base dir

Open ggarnier opened this issue 8 years ago • 1 comments

Adds a description on how to change the base directory where phantomjs will be installed.

ggarnier avatar Oct 24 '16 15:10 ggarnier

We use this to be able to cache phantomjs binaries during CI builds on Gitlab (caching is limited to dirs under project root). Note that including the phantomjs version is also really easy:

require 'phantomjs'
Phantomjs.base_dir = "#{Rails.root}/vendor/phantomjs/#{Phantomjs.version}"
require 'phantomjs/poltergeist'

tamaloa avatar Mar 02 '18 13:03 tamaloa