Re: Watir on heroku

2014-04-01 Thread Nícolas Iensen
Hi Josal, did you figured out how to do it? I have the same problem :( On Monday, December 20, 2010 8:11:16 AM UTC-2, Josal wrote: > > Hi, guys. > > I want to scrap an HTML site which is using javascript to generate the > contents. So, I can't use mechanize gem or similar ones. I've tried > rdo

Re: Watir on heroku

2014-04-01 Thread John McCaffrey
I like using phantomjs for scraping, though I haven't used it on heroku yet. I see there is a buildpack https://github.com/stomita/heroku-buildpack-phantomjs this example might be helpful http://benjaminbenben.com/2013/07/28/phantomjs-webserver/ On Mon, Dec 20, 2010 at 4:11 AM, Josal wrote: >

Re: Watir on heroku

2014-04-01 Thread Nícolas Iensen
Thanks John, I was reading about phantomjs and it looks awesome! I have a Rails application, and I want to use phantomjs in a rake task. But when I use the buildpack you mentioned the Rails app goes down. Do you know how can I use phantomjs only on the rake tasks, and keep using Rails environment

Re: Watir on heroku

2014-04-01 Thread John McCaffrey
I've never combined multiple buildpacks, but it is possible https://github.com/ddollar/heroku-buildpack-multi let us know how it works out! I think there are others that want to use a scraper like phantomjs, and a website in the same app. On Tue, Apr 1, 2014 at 5:11 PM, Nícolas Iensen wrote:

Re: Watir on heroku

2014-04-01 Thread Robert Fletcher
I've been using heroku-buildpack-multi and it works without any problems. On Tue, Apr 1, 2014 at 3:23 PM, John McCaffrey wrote: > I've never combined multiple buildpacks, but it is possible > > https://github.com/ddollar/heroku-buildpack-multi > > let us know how it works out! > I think there ar

Re: Watir on heroku

2014-04-01 Thread Nícolas Iensen
For the last hour I'm trying to push heroku-buildpack-multi but I'm getting the following error: Push rejected, error fetching custom buildpack I also tried to push heroku-buildpack-ruby alone but I got the same error. Do you know whats happening? Here is the following repo urls I'm using: htt

Re: Watir on heroku

2014-04-01 Thread Nícolas Iensen
Nevermind guys, it was probably a connection issue, it's working now. So, just for the record, I had to create a Procfile with: web: bundle exec rackup -p $PORT To get my web process working with the Rails app. And after pushing things to Heroku I had to run heroku ps:scale web=1 Because appa

Re: Watir on heroku

2014-04-01 Thread Robert Fletcher
On heroku you need to set BUILDPACK_URL to https://github.com/ddollar/heroku-buildpack-multi.git, and in your .buildpacks file in the root of your project add https://github.com/heroku/heroku-buildpack-ruby.git, if that deploy works, then you can add other buildpacks to .buildpacks. On Tue, Apr 1,