I am trying to deploy a Rails 3.1 application that I worked on locally. But after it was deployed to Heroku (Cedar stack), I ran into a problem that I didn’t have local access to and I can’t find a solution for this.
Actually, in some of my SCSS files, I import other SCSS files located in the parent directory. Among the several syntaxes I've tried:
@import "file.css.scss";
@import "file";
@import "/file.css.scss";
@import "/file";
@import "../file.css.scss";
@import "../file";
Most of them work locally, but none of them work on my CGG Heroku application. I also tried renaming my imported file to "_file.css.scss" with underlining, as this is the standard format for SCSS files that need to be imported. But nothing has changed.
The heroku error logs give me:
ActionView::Template::Error (File to import not found or unreadable: /mixins.css.scss.
I am getting ideas now, so I will be grateful if you have any tips to solve this problem.
Thanks a lot, Greetings!
source
share