I have a problem with a Laravel installed in a AWS in a Ubuntu machine. I was working in my computer and in the localhost (using the server via PHP in the public folder) I could see everything in the page. The boostrap works perfect. All the CSS libraries, images and js are called and the page works like a charm.
When I uploaded to my repository and downloaded in my server I was surprised to see that the styles were not working. First I thought maybe was the reading permission in the public folder, so I give it reading permission, this didn't work. After trying I gave all the Laravel folder 777 permission (I know that it is not ideal, but I'm kinda of desperate).
I was searching for another way to call the libraries. In the beginning I had this:
<link rel="stylesheet" type="text/css" href="/css/custom.css">
After some research, in some pages mentioned that it will be better if I use:
<link rel="stylesheet" type="text/css" href="">
This didn't work. So I have tried this other options:
<link rel="stylesheet" href="" />
{ HTML::style('css/css.css'); }}
Both of them don't work either. I have tried this with all the js and images also but none of the are loading.
I have a similar page in another Instance in a AWS with Ubuntu and Apache, same configuration and it works.
The weird thing is that when I installed the Laravel in the server it displayed the home page of Laravel, but after I made the changes it stopped working
I'm looking in the developer tools to see what the problem is and I'm getting this.
It is like the Laravel its not letting the libraries to be accessed, but I have no idea how to make it work.
If you gals and guys need any extra information, I will be glad to let you know.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire