Skip to content

lanbau/heroku-buildpack-casperjs

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 

Repository files navigation

Heroku buildpack: CasperJS

This is a Heroku buildpack of CasperJS / PhantomJS.

This fork now resembles more to stomita/heroku-buildpack-phantomjs and will be merged intermittently.

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 change CASPER_VERSION in bin/compile.

Now that phantomjs and casperjs are both available on npm, it is easier to use Node.JS buildpack to install them.

Usage

Example usage:

# in an empty folder
$ git init
$ heroku create --stack cedar --buildpack https://github.com/leesei/heroku-buildpack-casperjs.git
$ git commit -am "empty" --allow-empty # force a git commit
$ 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.7

$ casperjs --version
1.1.0-beta3

Alternately, you can cascade with other buildpacks with buildpack-multi. buildpack-casperjs plays well with cascading since it uses .profile.d/casperjs.sh (rather than solely on config var) 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 and driver of your choice.

About

This is a Heroku buildpack of CasperJS / PhantomJS.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 100.0%