This is a Heroku buildpack of CasperJS / PhantomJS.
Example usage:
$ heroku create --stack cedar --buildpack https://github.com/leesei/heroku-buildpack-casperjs.git
$ git push heroku master
Alternately, you can cascade with other buildpacks:
$ heroku create --stack cedar --buildpack https://github.com/ddollar/heroku-buildpack-multi.git
$ echo https://github.com/leesei/heroku-buildpack-casperjs.git > .buildpacks
# echo [other buildpack] >> .buildpacks
# `git add` your files
$ git push heroku master
You can also login to the herokuapp and execute phantomjs
and casperjs
:
$ heroku run bash
Running `bash` attached to terminal... up, run.2587
Add phantomjs/casperjs paths ...
$ casperjs
After commit 687a395061, these two config has to be set:
heroku config:set PATH="${PATH}:/app/vendor/phantomjs/bin:/app/vendor/casperjs/bin"
heroku config:set LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/app/vendor/phantomjs/lib"