来合并多个js,css文件。如果其中有文件修改了 需要把cache的文件删除 重新生成。所以部署的时候都会把这些cache文件删除了。
但是nginx设置了
location ~ ^/(images|javascripts|stylesheets)/ {
root /home/app/apps/redmine/current/public;
expires 30d;
}
这个静态文件的请求就没有发到rails进程, 就不会自动生成这些文件,导致页面加载文件404。
有人 用过 给js,css打包的插件吗?
>
>
>
>
> > 升到3.1吧,或者试试3.1里面的sprockets和uglifier
>
> > 2011/8/18 blade <yakj...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "Rails Wednesday" group.
To post to this group, send email to rail...@googlegroups.com.
To unsubscribe from this group, send email to railswed+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/railswed?hl=en.