2013-06-28 76 views
0

在将Rails应用程序部署到VPS的过程中,我遇到了几个导致rake任务中止的CSS错误。我不认为下面的CSS错误是我创建的,但是由于文件连接而产生,我很难调试它。我在我的应用程序中有两个css文件(一个是application.css),两者都不是1342行(这是我假定以下1342指的)。这两个CSS文件的结束与此css错误停止部署

*/*/*/ 

这是关系到错误

Invalid CSS after "*/*/*/": expected "{", was "" 
** [out :: 198.XXX] 
** [out :: 198.XXX] (in /home/brain/apps/dogapp/releases/20130628194843/app/assets/stylesheets/application.css) 
** [out :: 198.XXX] 
** [out :: 198.XXX] (sass):1342 

我application.css文件充当清单文件,但它也有很多的CSS代码在里面,另一个css文件中只有css文件。

请注意,如果这一点很重要,我并未在我的本地机器上运行rake assets:precompile,因为它似乎是由我从R Bates借用的部署脚本触发的。

你能解释这个错误吗?

/* 
* 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 bootstrap.min 
*= require_tree . 
*/ 

body { 
    padding-top: 60px; 
    font-family: Helvetica Neue,Arial,sans-serif; 
} 
ul { 

    list-style-type: none; 
} 
#ommitted code 


    aside { 
    textarea { 
    height: 100px; 
    margin-bottom: 5px; 
    } 
} 
*/*/*/ 
+1

不确定它是否相关,但我很确定应该在“Helvetica Neue”周围引用引号。 – offthat

+0

围绕他们,或只是那一个,因为它是两个字? – BrainLikeADullPencil

+1

只是一个考虑它是两个字。 – offthat

回答

0

我从两个文件的底部删除*/*/*/并且问题消失了。我不知道哪里来的,我认为Rails的把它放在那里出于某种原因来了。