问题描述
昨天我决定给Foundation一个我的网络应用程序的尝试。一切工作正常,因为我在localhost,但当我推动新的更改到我的EC2实例,继续遵循Zurb基金会的说明,我遇到这个错误:
Yesterday I decided to give Foundation a try on one of my web apps. Everything worked fine as I was in localhost, but when I pushed the new changes to my EC2 instance, continuing to follow the Zurb Foundation instructions, I ran into this error:
显示/var/www/brain_db/app/views/layouts/application.html.erb其中提出的第18行:
Showing /var/www/brain_db/app/views/layouts/application.html.erb where line #18 raised:
要导入的文件未找到或不可读:foundation / foundation-global。加载路径:Sass :: Rails :: Importer(/var/www/brain_db/app/assets/stylesheets/foundation_and_overrides.scss)(在/var/www/brain_db/app/assets/stylesheets/foundation_and_overrides.scss)
File to import not found or unreadable: foundation/foundation-global. Load path: Sass::Rails::Importer(/var/www/brain_db/app/assets/stylesheets/foundation_and_overrides.scss) (in /var/www/brain_db/app/assets/stylesheets/foundation_and_overrides.scss)
作为Ruby on Rails和Foundation的新手我真的不知道如何解决这个问题。我通过Google搜索发现很多人有类似的问题,但他们的情况略有不同,这使我很难诊断。任何建议?
As a newbie to Ruby on Rails and Foundation I'm really unsure of how to resolve this problem. I found many people with similar problems through a Google search, but their situations were slightly different which makes this hard for me to diagnose. Any advice?
推荐答案
我得到了同样的错误,结果,我只需要重新启动我的本地开发服务器。
I was getting this same error, and it turned out that I just needed to restart my local development server.
这篇关于Ruby无法找到Foundation / foundation-global?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!