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 

http://cl.ly/0c0z0m3h2v13 http://cl.ly/0g0z0s331c22

the answer here:

https://stackoverflow.com/questions/15354539/heroku-does-not-compile-files-under-assets-pipelines-in-rails-4

only changed:

 config.assets.compile = false 

by:

config.assets.compile = true 

Comments

Popular posts from this blog

ruby - Trying to change last to "x"s to 23 -

jquery - Clone last and append item to closest class -

css - Can I use the :after pseudo-element on an input field? -