Rails アプリケーションを VPS にデプロイする過程で、いくつかの CSS エラーが発生し、rake タスクが中止されました。以下の CSS エラーは私が作成したものではなく、むしろファイルの結合から発生していると思います。デバッグに苦労しています。アプリに 2 つの css ファイル (1 つは application.css) があり、どちらも 1342 行の長さではありません (以下の 1342 が参照していると想定しています)。どちらの 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;
}
}
*/*/*/