我在根目录下有正确的路径,但我的所有资产都是404。这也应该是根源。
控制台:
https://ajax.googleapis.com/ajax/libs/angular/client/js/1.3.0/angular-animate.js
sheltered-beach-2553.herokuapp.com/:19 GET https://cdnjs.cloudflare.com/ajax//client/libs/animate.css/3.3.0/animate.min.css
sheltered-beach-2553.herokuapp.com/:63 GET https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.4//client/js/bootstrap.js
sheltered-beach-2553.herokuapp.com/:68 GET https://sheltered-beach-2553.herokuapp.com/client/libs/angular-route/angular-route.min.js
sheltered-beach-2553.herokuapp.com/:20 GET https://sheltered-beach-2553.herokuapp.com/css/custom.css 404 (Not Found)
sheltered-beach-2553.herokuapp.com/:70 GET https://sheltered-beach-2553.herokuapp.com/client/libs/angular-bootstrap/ui-bootstrap-tpls.js
sheltered-beach-2553.herokuapp.com/:71 GET https://sheltered-beach-2553.herokuapp.com/client/libs/angular-socket-io/socket.js
sheltered-beach-2553.herokuapp.com/:69 GET https://sheltered-beach-2553.herokuapp.com/client/libs/angular-resource/angular-resource.js
JS:
如您所见,我已使用../
和作为前缀:
<script type="text/javascript" src="../client/js/app.js"></script>
<!--Main Controllers-->
<script type="text/javascript" src="client/js/controllers/homeController.js"></script>
<script type="text/javascript" src="client/js/controllers/navController.js"></script>
<script type="text/javascript" src="../client/js/controllers/aboutController.js"></script>
<script type="text/javascript" src="../client/js/controllers/projectsController.js"></script>
<!--Project Controllers-->
<script type="text/javascript" src="/client/js/controllers/projects/customerApiController.js"></script>
<script type="text/javascript" src="/client/js/controllers/projects/chatController.js"></script>
You can check out the whole output of my console over here:
https://sheltered-beach-2553.herokuapp.com/