Coder Social home page Coder Social logo

heroku-buildpack-casperjs's Introduction

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
# trigger the build with a push
$ touch empty; git add empty
$ git commit -am "empty"
$ 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
2.1.1

$ casperjs --version
1.1.0-beta5

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.