ruby on rails - CSS doesn't work when deploy to Heroku [Solved] -
this question has answer here:
css doesn't work when deploy rails application heroku.
my application.css.scss
has:
@import 'normalize'; @import 'skeleton'; @import 'animate.min'; @import 'froala_editor.min.css'; @import 'froala_style.min.css'; @import 'font-awesome'; @import 'plugins/char_counter.min.css'; @import 'plugins/code_view.min.css'; @import 'plugins/colors.min.css'; @import 'plugins/emoticons.min.css'; @import 'plugins/file.min.css'; @import 'plugins/fullscreen.min.css'; @import 'plugins/image_manager.min.css'; @import 'plugins/image.min.css'; @import 'plugins/line_breaker.min.css'; @import 'plugins/table.min.css'; @import 'plugins/video.min.css';
i tried using gems rails_12factor
, rails_serve_static_assets
, :
config.serve_static_files = true
also:
rails_env=production bundle exec rake assets:precompile
the answer here:
only changed:
config.assets.compile = false
by:
config.assets.compile = true
Comments
Post a Comment