I am currently developing and deploying an app [based on Yii 2.0.7]
Using 2 servers - local one for development, web server for production.
My latest round of deployment included some bespoke javascript.
This works fine on development but not on production system.
It throws following error.
OK - javascript error.
When I look at source code I am noticing that the Yii servers are inserting the jQuery (and Yii) js asset in different places.
(which is why it throws the error)
development server - header
<link href="/assets/1e835efb/css/bootstrap.css" rel="stylesheet">
<link href="/css/site.css" rel="stylesheet">
<script src="/assets/f5470ee1/jquery.js"></script>
<script src="/assets/c80b1685/yii.js"></script>
</head>
<body>
production server - after footer
</footer>
<script src="/assets/b98476/jquery.js"></script>
<script src="/assets/8c834ef9/yii.js"></script>
<script src="/assets/e9124964/js/bootstrap.js"></script></body>
</html>
Can anybody explain why this is happening?
How can I change the production server to output Javascript in same place as development? (i.e.: in <head>)
Thank you in advance.