I am trying to create a simple single page application using MEAN stack.
So far I worked on a localhost, and everything worked fine.
Sadly after uploading the code to the server I am getting status code 500 (Internal Server Error) whenever my application try to download anything from my partial folder (HTML templates).
It is not CORS problem (same domain) but just to be sure I also installed CORS plugin.
Example route:
$routeProvider.when('/admin/login', {
templateUrl: 'partials/admin/login.html',
controller: 'AdminLoginCtrl'
});
I also have the path setting:
router.get('*', function(request, response) {
response.sendfile('./public/index.html');
});
I've searched through many pages and I am not able to find a solution. Thank you for any help.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…