Setup Boxen to use PhantomJS
To use phantomjs in Boxen you need the phantomjs module. Boxen uses phantomenv to manage phantomjs versions and installation. Here's how to set it up in Boxen:
Puppetfile
github "phantomjs", "2.0.2"
[username].pp (or where ever in the manifest scheme of things)
include phantomjs
# PhantomJS
class { 'phantomjs::global':
version => '1.9.0'
}
Result:
Simons-MacBook-Pro:knowledgevision-html5-player newtriks$ phantomjs
phantomjs>
Simons-MacBook-Pro:knowledgevision-html5-player newtriks$ phantomenv version
1.9.0
Written by Simon Bailey
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Js
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#