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:
|
# Bundle edge Rails instead:
|
||||||
# gem 'rails', :git => 'git://github.com/rails/rails.git'
|
# gem 'rails', :git => 'git://github.com/rails/rails.git'
|
||||||
|
|
||||||
#gem 'watir'
|
|
||||||
gem 'phantomjs'
|
gem 'phantomjs'
|
||||||
|
|
||||||
gem 'devise'
|
gem 'devise'
|
||||||
gem 'redis', '2.2.2'
|
gem 'redis'
|
||||||
gem 'pg'
|
gem 'pg'
|
||||||
gem 'cancan'
|
gem 'cancan'
|
||||||
gem 'formula'
|
gem 'formula'
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
require 'phantomjs'
|
||||||
|
|
||||||
# app/workers/grab_map_screenshot_worker.rb
|
# app/workers/grab_map_screenshot_worker.rb
|
||||||
class GrabMapScreenshotWorker
|
class GrabMapScreenshotWorker
|
||||||
include Sidekiq::Worker
|
include Sidekiq::Worker
|
||||||
|
|
|
@ -46,5 +46,6 @@ page.open(url, function (status) {
|
||||||
});//page.evaluate
|
});//page.evaluate
|
||||||
} else {
|
} else {
|
||||||
//failed to load
|
//failed to load
|
||||||
|
phantom.exit();
|
||||||
}//if
|
}//if
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue