Mening ilovam mahalliy darajada ishlaydi, lekin uslublar jadvallari Herokuda ishlamaydi. Sababini tushunishga qiynalayapman.
Men Heroku's Sidar to'plamidan foydalanmoqdaman.
Mening g'oyalarimdan biri shundaki, mening aktivlarim muvaffaqiyatli tuzilmayapti:
RAILS_ENV=production bundle exec rake assets:precompile
rake aborted!
Invalid CSS after "*/": expected "}", was ""
(in /path/to/app/assets/stylesheets/application.css)
Nima uchun oldindan kompilyatsiya ilova.css oxirgi satridagi */
dan shikoyat qilayotganini kimdir tushuntira oladimi? U erda bo'lishi kerak. Agar kimdir tuzatgan bo'lsa, bu ham ideal bo'ladi.
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
*/
Yangilanish Men application.css-ga qo'shtirnoq qo'shishga harakat qildim va bu farq qilmaydi. Menimcha, nimadir to‘g‘ri emas. Lekin men herokuga yuborish uchun oldindan kompilyatsiya qila olmayman. Men saytni yuklaganimda, kamdan-kam hollarda formatlash mavjud.