Мое приложение работает локально, но таблицы стилей не работают на Heroku.Мне трудно понять, почему.
Я использую стек Cedar от Heroku.
Одна из моих идей заключается в том, что мои ресурсы не прекомпилируются успешно:
RAILS_ENV=production bundle exec rake assets:precompile
rake aborted!
Invalid CSS after "*/": expected "}", was ""
(in /path/to/app/assets/stylesheets/application.css)
Может кто-нибудь объяснить, почему прекомпиляция жалуется на */
в самой последней строке application.css?Это должно быть там.Если у кого-то есть исправление, это также было бы идеально.
application.css
/*
* 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 reset
*= require style
*= require projects
*= require_self
*/
Обновление Я попытался добавить цитаты вмой application.css, и это не имеет значения.Я думаю, что-то не так.Но я не могу прекомпилировать, чтобы отправить к героку.Когда я загружаю сайт, редко возникает какое-либо форматирование.