Comments (23)
Hi David, what gems do you have installed? What does your production.rb config look like re: the asset pipeline?
Can you paste the relevant part of your application.css.sass ?
from bourbon.
Can you also confirm how you are including the stylesheets from your layout?
from bourbon.
I've had that same problem on production. I've solved it by removing the 'assets' group from the Gemfile (weird).
Maybe that'll help.
from bourbon.
Things maybe relevant to this, curious to hear what you guys are doing...
- In your config/application.rb, which Bundler.require line are you using?
- Do you have the sass-rails gem installed, or just sass gem?
- How do you include your stylesheets from the layout?
- Are you doing any "precompile" of assets or relying totally on heroku to do this?
from bourbon.
I've had the same problem for several days and nothing seems to fix it. All versions of Bourbon give me the same problem : works for assets pre-compilation but I get an error message when running production on Heroku.
I have tried gem "bourbon" at the root of the Gemfile or in the "assets" group. I have also tried @import "bourbon" in the root sass file or in each of the imported sass files.
I am not using SCSS but SASS syntax, don't know if this might be an issue (I guess not).
from bourbon.
Additional question to my previous batch -- make sure you've run rake rails:update
to get the asset pipeline related changes to run in your production/staging/whatever environments on heroku.
from bourbon.
I forgot to say it is a brand new Rails 3.1 application, made from scratch for/with the assets pipeline / sass / bourbon or compass in mind.
from bourbon.
I had the same issue. I did a 'bundle update' and the deployment seemed to work the second time. My config is totally plain vanilla, nearly bone-stock Rails 3.1. Having an "assets" group didn't seem to make a difference.
from bourbon.
For anyone still having this issue - please provide us with the info that my 9/26 and 10/7 comments ask for so we can attempt to debug.
from bourbon.
Same problem:
1
Bundler.require *Rails.groups(:assets => %w(development test))
2
sass-rails installed
3
like this
@import "bourbon";
@import 'flutie';
@import 'scaffolds';
using application.css.scss
4
would like to use heroku to precompile during deployment
many thanks for any help!
from bourbon.
I also got the same problem:
- Bundler.require *Rails.groups(:assets => %w(development test))
- sass-rails installed
- @import "bourbon"; (application.css.scss)
- When I precompile the assets locally it works, but I'd like to rely totally on heroku
Thx in advance!
from bourbon.
One way to fix the problem might be to have a "main" css file without anything specific and not forgetting to include it in your application.rb :
# We need admin javascript & css assets to be precompiled too
config.assets.precompile += ['login.css', 'admin.css', 'admin.js']
Then your admin.css should be simple :
/*
*= require_tree ./admin
*/
It worked for me.
from bourbon.
I still got this issue.
Rails 3.2
Bourbon is outside of the asset group. Works fine in dev, not on Heroku.
ctionView::Template::Error (File to import not found or unreadable: bourbon.
*= require bootstrap/bootstrap
*= require_self
*/
@import "bourbon";
from bourbon.
Any progress on this?
from bourbon.
I'm also getting the same problem as @seivan when deploying a Rails 3.2.1 app to Heroku with bourbon 1.3.6.
(ps. Seems to be Active admin causing the problem though… ds)
(ps 2. This solved my problem: https://gist.github.com/1197686 ds.)
from bourbon.
https://gist.github.com/1197686 also solve for me.
from bourbon.
+1 for @rkleine15 and @erikostling tip.
from bourbon.
Just a note - this isn't anything to do with Bourbon I don't think, rather the case that your app is trying to connect to the database when assets:precompile is run on heroku. There is an article here explaining the issue: http://devcenter.heroku.com/articles/rails3x-asset-pipeline-cedar
The solution for me was to add the following line to config/application.rb
config.assets.initialize_on_precompile = false
I then followed the Bourbon installation instructions for Rails 3.1.x as documented here: https://github.com/thoughtbot/bourbon
I am running Rails 3.2.1
from bourbon.
@ugisozols gist fixed this for me, thanks! https://gist.github.com/1197686.
Note: I was having this issue on my own VPS, not Heroku. Using Rails 3.1.1
from bourbon.
dtt101: thanks for that. Just ran into the same thing and it worked for me.
from bourbon.
config.assets.initialize_on_precompile = false works for me. Thanks.
from bourbon.
@dtt101: excellent! that's the trick.
from bourbon.
https://gist.github.com/1197686 is working just fine, I'm running rails 3.2.1, also tested on heroku
from bourbon.
Related Issues (20)
- Jekyll Page Built Failure: File to import not found or unreadable HOT 6
- Remove (Ruby) sass dependency and switch to sassc for Bourbon 6.0.0? HOT 4
- npm bower deprecation HOT 3
- Sass::SyntaxError: Undefined variable: "$_buttons-list". HOT 2
- Tint percent is upside down HOT 5
- Suggestion: reset HOT 4
- can't resolve`bourbon` HOT 2
- Documentation menu issue HOT 1
- suggestion: font-face HOT 14
- CSS custom properties skipped in position() HOT 2
- Remove TTF / OTF on Bourbon 7! HOT 2
- How to add bourbon to React-CRA ? HOT 1
- NoMethodError: undefined method `assets' for Rails enginer HOT 3
- _is-color validator fails on CSS Custom Properties
- Using / for division is deprecated and will be removed in Dart Sass 2.0.0. HOT 9
- Document compatibility with Ruby Sass/gh-pages
- Support for Rails 7 HOT 1
- Recommendation: math.div($width, 2) or calc($width / 2)
- Issue Title
- N-US HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bourbon.