Created
February 14, 2017 02:37
-
-
Save 3014zhangshuo/9d97ac59f0ca7e906fb9125a014b669e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
font_dir = File.join(Dir.home, "fonts") | |
Dir.mkdir(font_dir) unless Dir.exists?(font_dir) | |
- Dir.glob(Rails.root.join("vendor", "fonts", "*")).each do |font| | |
+ Dir.glob(Rails.root.join("vendor","assets", "fonts", "*")).each do |font| | |
target = File.join(font_dir, File.basename(font)) | |
File.symlink(font, target) unless File.exists?(target) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment