Ruby on rails Rails ActionView模板错误在生产服务器上没有要加载的文件(SASS)
我正试图在生产环境中启动Rails应用程序,但它不工作,无法启动,出现以下错误(在开发过程中运行正常): config/database.yml文件的生产部分(我正在使用PostgreSQL,不知道这是否相关):Ruby on rails Rails ActionView模板错误在生产服务器上没有要加载的文件(SASS),ruby-on-rails,postgresql,jdbc,sass,libv8,Ruby On Rails,Postgresql,Jdbc,Sass,Libv8,我正试图在生产环境中启动Rails应用程序,但它不工作,无法启动,出现以下错误(在开发过程中运行正常): config/database.yml文件的生产部分(我正在使用PostgreSQL,不知道这是否相关): 你能分享问题中application.css文件的内容吗?当然,我把它添加到了原始问题中。你在app/assets/stylesheets文件夹中有名为file.css.scc的文件吗?此外,扩展名应该是.scss,而不是.scc。是的,我知道,但该文件是完全空白的。它包含的全部内容是
你能分享问题中
application.css
文件的内容吗?当然,我把它添加到了原始问题中。你在app/assets/stylesheets
文件夹中有名为file.css.scc
的文件吗?此外,扩展名应该是.scss
,而不是.scc
。是的,我知道,但该文件是完全空白的。它包含的全部内容是//将所有与管理控制器相关的样式放在此处。//它们将自动包含在application.css中您可以在此处使用Sass(SCSS):http://sass-lang.com/
文件的扩展名是.scss
?
ActionView::Template::Eror (no such file to load -- sass in (/.../app/assets/stylesheets/file.css.scss)):
13: ...
14: <%= stylesheet_link_tag "application", media => "all" %>
15: ...
app/views/layouts/application.html.erb: 14:in '_app_views_layouts_application_html_erb'
gem 'rails', '3.2.12'
gem 'activerecord-jdbc-adapter', "1.2.2"
gem 'activerecord-jdbcpostgresql-adapter', '1.2.1'
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
gem 'therubyrhino'
gem 'jquery-rails', '2.2.1'
gem 'less-rails', '2.3.3'
gem 'rubyzip', '0.9.9'
production:
adapter: jdbc
jndi: jdbc/appname
database: appname
user: appname
password: appname
host: <ip address>
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
*= require_self
*= require_tree .
*= require bootstrap-datetimepicker
*= require bootstrap-select.min
*/