@huacnlee 按 github 上的说明完成 social-share-button 的安装和使用,在开发模式(rails s) 一切正常,为什么放到 nginx+Passenger 后前面的小图标就无法显示?运行 RAILS_ENV=production rails assets:clean/precompile 也没有? 谢谢!
#4 楼 @benyu Rails 的 Engine 我不是很熟悉,或许跟这个也有关系? http://thomas.vondeyen.com/2011/11/09/precompile-assets-from-rails-3-1-engines/
@huacnlee ,终于出来,请的就是你,谢谢! nginx 如果有问题,我想同个 assets 下的图片或文件也不显示对吧?但其它可以!
主要自己添加的就这些 location / { passenger_enabled on; rails_env production; index index.html index.htm; }
没有用 Nginx 做缓存之类的 (在本机只是把 env 换成 production)!所以不得其解!