update phantom settings
This commit is contained in:
parent
cde771e007
commit
841e6fb3ab
3 changed files with 4 additions and 2 deletions
3
Gemfile
3
Gemfile
|
@ -6,11 +6,10 @@ gem 'rails', '3.2.17'
|
|||
# Bundle edge Rails instead:
|
||||
# gem 'rails', :git => 'git://github.com/rails/rails.git'
|
||||
|
||||
#gem 'watir'
|
||||
gem 'phantomjs'
|
||||
|
||||
gem 'devise'
|
||||
gem 'redis', '2.2.2'
|
||||
gem 'redis'
|
||||
gem 'pg'
|
||||
gem 'cancan'
|
||||
gem 'formula'
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
require 'phantomjs'
|
||||
|
||||
# app/workers/grab_map_screenshot_worker.rb
|
||||
class GrabMapScreenshotWorker
|
||||
include Sidekiq::Worker
|
||||
|
|
|
@ -46,5 +46,6 @@ page.open(url, function (status) {
|
|||
});//page.evaluate
|
||||
} else {
|
||||
//failed to load
|
||||
phantom.exit();
|
||||
}//if
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue