Nginx+ Unicorn+mysql 部署线上环境,在网页中我引入 js 文件
<script src="assets/js/jquery-1.9.1.min.js" type="text/javascript"></script>
<script src="assets/js/modernizr.custom.js" type="text/javascript" ></script>
<script src="assets/js/jquery.scrollto.js"></script>
<script src="assets/js/waypoints.min.js" type="text/javascript"></script>
<script src="assets/js/jquery.tweet.js" type="text/javascript"></script>
<script src="assets/js/custom.js" type="text/javascript"></script>
<script src="assets/js/bootstrap.js"></script>
<script src="assets/js/jquery.flexslider.js"></script>
<script src="assets/js/jquery.fancybox.pack.js" type="text/javascript" ></script>
<script src="assets/js/jquery.fancybox-media.js?v=1.0.0" type="text/javascript"></script>
<script src="assets/js/retina.js"></script>
这样引入的,在本地测试环境下,一点问题都没有,到了线上我执行
预编译命令RAILS_ENV=production rake assets:precompile
以后,js 引用就不生效了,请问各位这是怎么回事。谢谢各位