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;
}
}
*/*/*/
不確定它是否相關,但我很確定應該在「Helvetica Neue」周圍引用引號。 – offthat
圍繞他們,或只是那一個,因爲它是兩個字? – BrainLikeADullPencil
只是一個考慮它是兩個字。 – offthat