asset-pipeline

Getting my images in css to work on rails and asset pipeline with upgraded app on Heroku

送分小仙女□ 提交于 2019-12-21 06:39:09
问题 This is an app that I am upgrading to Rails 3.1, along with the asset pipeline. Everything looks peachy in development, but when I push to heroku, the images in my css are not displaying. Couple of questions. First, should I leave these files with the css extention, or should they be renamed to either scss, or css.scss.erb? The other question I have is how should I reference images in the css. Currently I have... background: #B4F4FF url(/assets/img01.jpg) repeat-x left top;^M I am pretty sure

How to deliver fonts from a non-standard directory using Asset Pipeline

泪湿孤枕 提交于 2019-12-21 04:51:43
问题 I'm trying to include Fontawesome with a Rails 4 app however the assets aren't making it into the asset pipeline. However, the fonts aren't making it out in production and I can't figure out why. File structure organisation All my assets are stored in /assets/components so that Fontawesome appears in: /assets/components/font-awesome (they're in a different directory because I'm using Bower). CSS manifest file: # application.css.scss /* ... *= require bootstrap/dist/css/bootstrap *= require

Grails Asset-Pipeline system with 3rd party libs

流过昼夜 提交于 2019-12-20 17:29:45
问题 Grails 2.4 is now using the Asset Pipeline for managing and processing static assets in Grails applications instead of the Resources system. This is pretty new and there isn't much doc about it on the internet yet. My question is, how to correctly handle 3rd party libraries? For instance, the select2 (http://ivaynberg.github.io/select2/) library comes with all its .css, .js, image files in a single flat folder. Should I copy the different file types in to their corresponding assets

require_tree argument must be a directory in a Rails 5 upgraded app

心已入冬 提交于 2019-12-20 16:47:29
问题 I just upgraded my app from Rails 4.2.7 to Rails 5.0.0.1 . I used RailsDiff to make sure I had everything covered and I believe I did. So far everything has worked well up until the loading of my app. Now I am seeing this error: Sprockets::ArgumentError at / require_tree argument must be a directory This is my application.css : /* * This is a manifest file that'll be compiled into application.css, which will include all the files * listed below. * * Any CSS and SCSS file within this directory

Heroku is not pre-compiling my assets to prepare my app for asset pipeline

无人久伴 提交于 2019-12-20 14:13:14
问题 I'm having a bit of trouble getting my asset pipeline setup working with Heroku/Cedar using Rails 3.1.1 I've pushed my application and it launches successfully but there was no message that said "Preparing asset pipeline" and no static assets are being served up. No JS, CSS, or images are able to be found as there is no slug compilation time or runtime asset compilation being done. Any help would be greatly appreciated. They describe what should happen during deployment at this link which I

How can I dynamically require assets in the Rails 3.1 asset pipeline?

六眼飞鱼酱① 提交于 2019-12-20 13:34:41
问题 I have a plugin-based system that I use for application development in Rails. Each plugin implements an engine with MVC components, etc. The main application is simply an empty harness that delegates all the work to the plugins that are installed. I'm currently upgrading to Rails 3.1 from Rails 2.3.5, and am trying to get the asset pipeline working with my framework. The problem I'm having is trying to programmatically require my plugin's assets into, for example, the application.js manifest.

Excluding files from assets:precompile in rails

安稳与你 提交于 2019-12-20 10:36:37
问题 I use codekit for writing less which it then converts to css automatically. I don't want rails to convert my less files to css, I rather codekit do it. if I precompile the assets via rake assets:precompile I get rake aborted! cannot load such file -- less How do I exclude a specific folder/file types from precompiling? (all my less files are in app/assets/stylesheets/less and the css (which I do want to be precompiled) are in app/assets/stylesheets/css update deleting application.less solves

Asset pipeline for Ember.js, Express.js and Node.js?

☆樱花仙子☆ 提交于 2019-12-20 10:19:06
问题 I'm building an Ember.js application using Express.js as the backend. Right now, I load all my *.js files individually and store my Handlebars templates in my HTML file. I like to replace with a full-fledged "asset pipline" similar to the one in Rails. In a perfect world, this would support: Convert CoffeeScript to JavaScript. Pre-compile Handlebars templates using the Ember.js extensions. Concatenate and minify JavaScript and CSS (production only). I've looked briefly at Require.js, connect

asset precompilation error from blueprint css - ActionView::Template::Error (blueprint/screen.css isn't precompiled) - Internal Server Error 500

独自空忆成欢 提交于 2019-12-20 07:23:07
问题 I'm trying to deploy a rails app but I'm stuck with an asset pre-compilation error. According to the production log the error is being caused by a 'Blueprint' css script called screen.css (as you can see in the error output below). However according to the production log, this asset does in fact get pre-compiled. I've tried explicitly adding screen.css and print.css to the precompile array, both in the application.rb and config/environments/production.rb files as follows config.assets

Grails Asset Pipeline causing server error

倖福魔咒の 提交于 2019-12-20 06:38:37
问题 I have created a Grails app with no custom controllers that I have deployed using a Tomcat via Docker. The app runs ok (run-app and run-war) on my local machine, but not when I deploy using Tomcat. I get the following stack trace, any idea of the cause please? 2014-10-17 08:08:04,158 [http-bio-8080-exec-10] ERROR StackTrace - Full Stack Trace: org.codehaus.groovy.grails.web.pages.exceptions.GroovyPagesException: Error applying layout : main at org.codehaus.groovy.grails.web.servlet.view