FezVrasta的Bootstrap-Material-Design是一个非常好的模块!我只有一点点痒——这与 material.css 中提到的字体有关
我在 Ruby 2.1.2、Rails 4.1.5、Node 0.10.35 和 Bower 1.3.7
我添加了一个 .bowerrc
{
"directory" : "vendor/assets/bower_components"
}
然后我把gem "bower-rails", "~> 0.9.2"
我的 Gemfile
然后我在 Bowerfile 中列出了凉亭包
# A sample Bowerfile
# Check out https://github.com/42dev/bower-rails#ruby-dsl-configuration for more options
# asset 'bootstrap'
asset "jquery", "2.1.1"
asset "jquery-ujs", "1.0.1"
asset "sweetalert", "0.2.0"
asset "bootstrap-material-design", "0.2.2"
Then I did my bower install – and everything was perfect!
但是在上限生产部署之后,我必须在我的应用服务器上执行以下操作:
cd public && ln -s /var/www/clock/current/vendor/assets/bower_components/bootstrap-material-design/fonts fonts
否则我的浏览器会用
Failed to load resource: the server responded with a status of 404 (Not Found)
http://irrelevant.domain/fonts/Material-Design-Icons.woff?-g7cqhn
Is there a way around this?
这并不是说我不能自动化符号链接——它似乎有点像贴上创可贴:)