From ad9756264ba5482aba56ffd2338de09543de4d66 Mon Sep 17 00:00:00 2001 From: mokoaki Date: Tue, 14 Jun 2016 19:40:20 +0900 Subject: [PATCH] I following "which: no phantomjs in" thing to turn off the message, such as it was thought that than can be $ rails c Loading development environment (Rails 4.2.6) irb(main):001:0> Phantomjs.path which: no phantomjs in (/home/xxxxxxx/.rbenv/versions/2.3.1/bin:/home/xxxxxxx/.rbenv/libexec:/home/xxxxxxx/.rbenv/plugins/ruby-build/bin:...) which: no phantomjs in (/home/xxxxxxx/.rbenv/versions/2.3.1/bin:/home/xxxxxxx/.rbenv/libexec:/home/xxxxxxx/.rbenv/plugins/ruby-build/bin:...) => "/home/xxxxxxx/.phantomjs/2.1.1/x86_64-linux/bin/phantomjs" --- lib/phantomjs/platform.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/phantomjs/platform.rb b/lib/phantomjs/platform.rb index 28df128..50270bb 100644 --- a/lib/phantomjs/platform.rb +++ b/lib/phantomjs/platform.rb @@ -22,7 +22,7 @@ def phantomjs_path end def system_phantomjs_path - `which phantomjs`.delete("\n") + `which phantomjs 2>/dev/null`.delete("\n") rescue end