Closed Leandro-b-03 closed 8 years ago
+1
+1
+1
On my homologation environment (that's online), I'm using the vhost to set the app online and there isn't any problem with the assets, on local environment I start the serve by:
php artisan serve
and it start on localhost:8000, but the address is "::1" here's the console output:
Laravel development server started on http://localhost:8000/
So I've tried to change the host and had no success
Laravel development server started on http://timesheet.localhost.com:80/
[Tue Aug 25 10:13:52 2015] 127.0.0.1:53790 Invalid request (Unexpected EOF)
So at last I tried the vhosts on my machine:
<VirtualHost *:80>
ServerName timesheet.localhost.com
DocumentRoot "C:\Users\user\Projetos\Controle-de-Horas/public"
<Directory "C:\Users\user\Projetos\Controle-de-Horas/public">
AllowOverride all
</Directory>
</VirtualHost>
And curiously, worked, but I'm not like using vhosts on local environment, because I'm don't like to apache start together with windows.
After some tries, look like the the php artisan serve --host=timesheet.localhost.com --port=80 worked, but I don't know how it worked, if someone could try to make us understand that behavior on the server I'll be eternally grateful!
PS: I've notice that may it worked after I put the ip and the alias on the hosts like:
127.0.0.1 timesheet.localhost.com
PS2: After restart the app it doesn't work anymore.
Did you check your apache config and changed the Directory www to AllowOverride all?
Well I'm on windows and the vhosts has the AllowOverride all on the directory, but I'm not using apache.
+1, and I've nginx, so no AllowOverride possible.. Any solution ?
@mathieutu Man, I even forgot about this topic, but I think I may have a solution.
When I run
php artisan config:cache
The problem disappears until the next view created, may this could help you, is a temporally solution, but works for me.
Thank's @Leandro-b-03! It seems to work now, I'll repost here if I've something new.
+1 Everything was fine today until I created a new view. Now I have the same error and your fix doesn't work :(
@Neomaltine,
Man, go to bootstrap/cache and delete config.php, see if works. it's a long shot, but could work.
@Leandro-b-03 Thank you for the anwer but I started a fresh install and now it's working fine.
I changed route_prefix to "-debugbar" and all starts working fine.
Hi, I'm trying to use the debugbar with L5, and the assets doesn't load...
I've read all threads but no one resolve my issue.
So let me explain, when I enter in the route the debugbar assets doesn't load and the console throws me the error:
I refresh the page and the debugbar is there, and load the all assets correctly.
I'm using like that on app.php
I appreciate any help.