【发布时间】:2016-04-12 08:06:31
【问题描述】:
如果我在开发模式下运行应用程序运行。如果使用 rails server -e production,显示错误:Error compile assets 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)
宝石文件
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
如何解决这个问题?
【问题讨论】:
-
您是否尝试过预编译您的资产?
bundle exec rake assets:precompile -
不,一会儿。我正在尝试
-
我会添加一个问题供大家查看
标签: ruby-on-rails assets