{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/21367","labels_url":"https://api.github.com/repos/rails/rails/issues/21367/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/21367/comments","events_url":"https://api.github.com/repos/rails/rails/issues/21367/events","html_url":"https://github.com/rails/rails/issues/21367","id":102958904,"number":21367,"title":"RoR 4.2.4: Custom fonts not loaded in production","user":{"login":"Sega100500","id":584144,"avatar_url":"https://avatars.githubusercontent.com/u/584144?v=3","gravatar_id":"","url":"https://api.github.com/users/Sega100500","html_url":"https://github.com/Sega100500","followers_url":"https://api.github.com/users/Sega100500/followers","following_url":"https://api.github.com/users/Sega100500/following{/other_user}","gists_url":"https://api.github.com/users/Sega100500/gists{/gist_id}","starred_url":"https://api.github.com/users/Sega100500/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sega100500/subscriptions","organizations_url":"https://api.github.com/users/Sega100500/orgs","repos_url":"https://api.github.com/users/Sega100500/repos","events_url":"https://api.github.com/users/Sega100500/events{/privacy}","received_events_url":"https://api.github.com/users/Sega100500/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":27,"created_at":"2015-08-25T06:29:28Z","updated_at":"2015-08-25T10:15:16Z","closed_at":null,"body":"1. In config/environments/production.rb\r\nconfig.assets.compile = true\r\n\r\n2. fonts directory structure:\r\napp/assets/stylesheets/_fonts.scss:\r\n@import \"font/RobotoBold.css\";\r\n\r\napp/assets/stylesheets/font/RobotoBold.css:\r\n@font-face {\r\n    font-family: 'RobotoBold';\r\n    src: url('Roboto/RobotoBold.eot');\r\n    src: url('Roboto/RobotoBold.eot') format('embedded-opentype'),\r\n         url('Roboto/RobotoBold.woff2') format('woff2'),\r\n         url('Roboto/RobotoBold.woff') format('woff'),\r\n         url('Roboto/RobotoBold.ttf') format('truetype'),\r\n         url('Roboto/RobotoBold.svg#RobotoBold') format('svg');\r\n}\r\n\r\nin app/assets/stylesheets/font/Roboto directory - files of font\r\n\r\n3. Attach fonts\r\n@import \"fonts\";\r\n\r\nIn RoR 4.2.3 ALL WORK FINE! In 4.2.4 fonts not loaded, displays as standart fonts.\r\nIn development mode all work.\r\n\r\nPlease fix it! Many project now displayed incorrectly\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/134547139","html_url":"https://github.com/rails/rails/issues/21367#issuecomment-134547139","issue_url":"https://api.github.com/repos/rails/rails/issues/21367","id":134547139,"user":{"login":"Sega100500","id":584144,"avatar_url":"https://avatars.githubusercontent.com/u/584144?v=3","gravatar_id":"","url":"https://api.github.com/users/Sega100500","html_url":"https://github.com/Sega100500","followers_url":"https://api.github.com/users/Sega100500/followers","following_url":"https://api.github.com/users/Sega100500/following{/other_user}","gists_url":"https://api.github.com/users/Sega100500/gists{/gist_id}","starred_url":"https://api.github.com/users/Sega100500/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sega100500/subscriptions","organizations_url":"https://api.github.com/users/Sega100500/orgs","repos_url":"https://api.github.com/users/Sega100500/repos","events_url":"https://api.github.com/users/Sega100500/events{/privacy}","received_events_url":"https://api.github.com/users/Sega100500/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T10:15:16Z","updated_at":"2015-08-25T10:15:16Z","body":"HOW I can made SAME behavior of application in development and production mode WITHOUT run 'rake assets:precompile' every time?"}}