Git Product home page Git Product logo

heroku-buildpack-casperjs's People

Contributors

ddollar avatar jessefulton avatar leesei avatar misza222 avatar oguzbilgic avatar stomita avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

heroku-buildpack-casperjs's Issues

Can not clone casperjs repo

Hi

-----> Fetching custom git buildpack... done
-----> PhantomJS app detected
-----> Fetching PhantomJS 1.9.8 binaries at https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
-----> Extracting PhantomJS 1.9.8 binaries to /tmp/build_3663f488791435b139cba8e4b94b67af/vendor/phantomjs
-----> Cloning CasperJS
Cloning into 'casperjs'...
fatal: Not a git repository: '.'
 !     Push rejected, failed to compile PhantomJS app
To [email protected]:myherokuapp.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to '[email protected]:myherokuapp.git'

Any idea ?

Can't open '/app/bin/bootstrap.js'

I have installed PhantomJS and CasperJS locally on Mac OS X using Homebrew.

In rails console, I get:

Loading development environment (Rails 4.2.0)
[1] pry(main)> `phantomjs --version`
=> "1.9.8\n"
[2] pry(main)> `casperjs`
=> "CasperJS version 1.1.0-beta3 at /usr/local/Cellar/casperjs/1.1-beta3/libexec, using phantomjs version 1.9.8\nUsage: casperjs [options] script.[js|coffee] [script argument [script argument ...]]\n       casperjs [options] test [test path [test path ...]]\n       casperjs [options] selftest\n       casperjs [options] __selfcommandtest\n\nOptions:\n\n--verbose   Prints log messages to the console\n--log-level Sets logging level\n--help      Prints this help\n--version   Prints out CasperJS version\n--engine=name Use the given engine. Current supported engine: phantomjs and slimerjs\n\nRead the docs http://docs.casperjs.org/\n\nUnsafe JavaScript attempt to access frame with URL about:blank from frame with URL file:///usr/local/Cellar/casperjs/1.1-beta3/libexec/bin/bootstrap.js. Domains, protocols and ports must match.\n\n"
[3] pry(main)> 

I have tried to replicate this on Heroku using the following .buildpacks file:

https://github.com/leesei/heroku-buildpack-casperjs.git
https://github.com/heroku/heroku-buildpack-ruby.git

This is enabled by the multi buildpack:

steven$ heroku buildpacks --app testivate
=== testivate Buildpack URL
https://github.com/ddollar/heroku-buildpack-multi.git

However, in heroku run console --app testivate I get:

irb(main):001:0> `phantomjs --version`
=> "1.9.8\n"
irb(main):002:0> `casperjs`
Can't open '/app/bin/bootstrap.js'
=> ""
irb(main):003:0> 
irb(main):004:0* `echo $PATH`
=> "/app/vendor/bundle/ruby/2.1.0/bin:/app/bin:/app/vendor/bundle/bin:/usr/local/bin:/usr/bin:/bin:/app/vendor/phantomjs/bin:/app/vendor/casperjs/bin\n"
irb(main):005:0> 

I have tried:

steven$ heroku run bash --app testivate
Running `bash` attached to terminal... up, run.1132
Add phantomjs/casperjs paths ...
~ $ ln -sf `pwd`/bin/casperjs /usr/local/bin/casperjs
ln: creating symbolic link `/usr/local/bin/casperjs': Read-only file system
~ $ 

But to no avail.

Your thoughts?

Thanks.

Long running task will stop randomly

I use this buildpack to run a long-running CasperJS task with the following command:

~$ heroku run casperjs long.js > log.txt

but the task stops randomly, without leaving any error message. Sometimes it ran for few hours, sometimes it ran for few minutes. Is this a potential bug?

New version of phantomjs doesn't work

Pushing to heroku gives the following:

=====> Downloading Buildpack: https://github.com/leesei/heroku-buildpack-casperjs.git
=====> Detected Framework: PhantomJS
-----> Fetching PhantomJS 1.9.7 binaries at https://phantomjs.googlecode.com/files/phantomjs-1.9.7-linux-x86_64.tar.bz2
-----> Extracting PhantomJS 1.9.7 binaries to /tmp/build_70d07d8fd8b7cc0acc5a340e16df5ad7/vendor/phantomjs
bzip2: (stdin) is not a bzip2 file.
tar: Child returned status 2
tar: Exiting with failure status due to previous errors

 !     Push rejected, failed to compile Multipack app

Specify CasperJS version

Hi there!

Thanks for the buildpack. I have a concern here...It seems that this buidpack is using the latest tag from CasperJS repository. When I log into my Heroku bash, I see the version of CasperJS used is: 1.1.0-beta3.

Is there any way one could specify the version to be used? So it is consistent among several environments (I am using 1.1.0-DEV in my local machine for example)

How would I specify a version for the buildpack?

Thanks

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.