1
7
由于性能原因,静态资产服务在生产模式下被禁用。您的web服务器应该配置为服务于这些资产。 看看这个 discussion 如果您使用nginx作为web服务器。 |
2
5
在Rails 3.x中,尝试在config/environments/production.rb中设置它
默认情况下,Rails假设您使用的是资产服务器(lightttp、nginx或Apache) |
3
4
在发动机中,更换:
使用:
|
4
2
您是否尝试将此添加到您的Rails::Engine类中:
这将在运行时与应用程序合并到Gem的/public目录中。 |
5
1
我在安装Rails3.1引擎时也遇到了类似的问题。我在舞台和制作中收到了空白资产。 我在 http://jonswope.com/2010/07/25/rails-3-engines-plugins-and-static-assets/comment-page-1/#comment-87 并对其进行了调整以适应Rails 3.1的资产位置:
我想还有一种更优雅的方式,但我今天的努力没有产生任何实质性的效果。 |
6
0
我不太了解宝石的包装方式。但是为什么不能将gems公共文件夹中的images/js/css文件复制到apps公共文件夹中呢?我就这么做了,这对我很有用。这不是做过的事吗? |
ChucKN0risK · 在网页包3中找不到静态资产 6 年前 |
Dawid ZbiÅski · 使用细枝创建现成的共享元素 6 年前 |
Walter Shub · jekyll GitHub页面未加载资产 7 年前 |
Drunken Daddy · 角度2:在子目录中部署时未加载资产 7 年前 |
Seif · 为什么在路径段之后添加资产路径?轨道 7 年前 |
jorjj · Swift 3:选项卡栏控制器图像大小问题 7 年前 |
anmig · LibGDX使用AssetManager的正确方法 7 年前 |