2016-04-12 8 views
1

私がdevモードのアプリケーションを実行している場合。 rails server -e productionの場合、エラーを表示します。アセットをコンパイル中にエラーが発生しました。w.css: Sass :: SyntaxError:インポートするファイルが見つかりません:コンパス/リセット。インポートするファイルが見つからないか、読み取れない:生産モードのコンパス

詳細ログ

Started GET "/assets/w.css" for 127.0.0.1 at 2016-04-12 10:51:51 +0300 
Error compiling asset w.css: 
Sass::SyntaxError: File to import not found or unreadable: compass/reset. 
    (in /home/user/projects/projectname/app/assets/stylesheets/welcome.sass) 
Served asset /w.css - 500 Internal Server Error 
Started GET "/assets/w.js" for 127.0.0.1 at 2016-04-12 10:51:51 +0300 
Error compiling asset w.js: 
Sprockets::FileNotFound: couldn't find file 'bootstrap-transition' 
    (in /home/user/projects/projectname/app/assets/javascripts/w.js.coffee:3) 
Served asset /w.js - 500 Internal Server Error 
Started GET "/assets/w.css" for 127.0.0.1 at 2016-04-12 10:52:16 +0300 
Error compiling asset w.css: 
Sass::SyntaxError: File to import not found or unreadable: compass/reset. 
    (in /home/user/projects/projectname/app/assets/stylesheets/welcome.sass) 

gemfile

group :assets do 
    gem 'sass-rails' 
    gem 'coffee-rails' 
    gem 'compass-rails' 
    gem 'bootstrap-sass', '2.1.1.0' 
    gem 'therubyracer' 
    gem 'execjs' 
    gem 'uglifier', '>= 1.0.3' 
    gem 'oily_png' 
    # gem 'font-awesome-rails' 
    gem 'turbo-sprockets-rails3' 
end 

どのようにこの問題を解決しますか?

+0

はあなたの資産をプリコンパイルしようとしたことがありますか? 'bundle exec rake assets:precompile' – born4new

+0

いいえ、瞬間です。私は試しています –

+0

良い、ありがとう –

答えて

2

あなたはあなたの資産をプリコンパイルする必要があります。

bundle exec rake assets:precompile 
関連する問題