/assets/stylesheets/application.css
@import "bootstrap-sprockets";
@import "bootstrap";
/config/environments/ production.rb
config.assets.compile = true
config.serve_static_assets = true
/config/application.rb
config.autoload_paths += %W(#{config.root}/app/models/ckeditor)
config.assets.precompile += %w(*.png *.jpg *.jpeg *.gif)
config.assets.precompile += %w(.svg .eot .woff .ttf)
config.assets.paths << "#{Rails}/vendor/assets/fonts"
run
rake assets:precompile rails_ENV=production
沒有留言:
張貼留言