12
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

rails5移行を進めてるんだけど、less-railsがwarning吐きまくってうるさい

Last updated at Posted at 2017-01-17

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書き換えて、パッチが当たったものを適用したら無事、静かになりました。:angel:

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'

参考

12
8
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
8

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?