mshpak / heroku-buildpack-casperjs

CasperJS build pack for Heroku

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Heroku buildpack: CasperJS

This is a Heroku buildpack of CasperJS / PhantomJS.

Note: this buildpack only installs the phantomjs and casperjs binaries.

Note2: this buildpack checks out the latest CasperJS on master branch.
If you need a specific version, please fork and change the git URL or add a git co <tag> here.

Usage

Example usage:

$ heroku create --stack cedar --buildpack https://github.com/leesei/heroku-buildpack-casperjs.git

$ git push heroku master

You can now login to the herokuapp and execute phantomjs and casperjs:

$ heroku run bash
Running `bash` attached to terminal... up, run.2587
Add phantomjs/casperjs paths ...

$ phantomjs --version
1.9.2

$ casperjs --version
1.1.0-DEV

Alternately, you can cascade with other buildpacks with buildpack-multi. buildpack-casperjs plays well with cascading since this buildpack uses profile.d/casperjs.sh to add to PATH.

$ 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

Example: leesei/heroku-casper-node

You can replace Node with other language of your choice.

About

CasperJS build pack for Heroku


Languages

Language:Shell 100.0%