leesei / heroku-buildpack-casperjs Goto Github PK
View Code? Open in Web Editor NEWThis project forked from misza222/heroku-buildpack-casperjs
This is a Heroku buildpack of CasperJS / PhantomJS.
This project forked from misza222/heroku-buildpack-casperjs
This is a Heroku buildpack of CasperJS / PhantomJS.
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 ?
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.
Hi,
I have a really simple hello world application. I tried doing this:
heroku create --stack cedar --buildpack https://github.com/leesei/heroku-buildpack-casperjs.git
But then I see that there are no web dynos defined in Heroku. I know this for two reasons:
1- I keep getting "at=error code=H14 desc="No web processes running""
2 - When I log into my Heroku account I see there is no web dyno defined.
Any thoughts on that?
I'm on Rails 4.
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?
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
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.