warningを確認
下記のようなwarningがことあるたびに出てつらい…
% rails s
=> Booting Puma
=> Rails 5.0.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
DEPRECATION WARNING: Sprockets method `register_engine` is deprecated.
Please register a mime type using `register_mime_type` then
use `register_compressor` or `register_transformer`.
https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors
(called from block in <class:Railtie> at /Users/t00114/src/github.com/webapp/.direnv/ruby/gems/less-rails-2.8.0/lib/less/rails/railtie.rb:16)
DEPRECATION WARNING: You are using the a deprecated processor interface Less::Rails::ImportProcessor.
Please update your processor interface:
https://github.com/rails/sprockets/blob/master/guides/extending_sprockets.md#supporting-all-versions-of-sprockets-in-processors
(called from block in <class:Railtie> at /Users/t00114/src/github.com/webapp/.direnv/ruby/gems/less-rails-2.8.0/lib/less/rails/railtie.rb:21)
A server is already running. Check /Users/t00114/src/github.com/webapp/tmp/pids/server.pid.
Exiting
対応
Gemfile書き換えて、パッチが当たったものを適用したら無事、静かになりました。
Gemfile
git diff Gemfile
diff --git a/Gemfile b/Gemfile
index 259c4bc..1d3cb41 100755
--- a/Gemfile
+++ b/Gemfile
@@ -11,7 +11,7 @@ gem 'sdoc'
gem 'mysql2'
gem 'turbolinks'
gem 'uglifier'
-gem 'less-rails'
+gem 'less-rails', git: 'https://github.com/MustafaZain/less-rails'
参考