jaesung2061 / anvel

Angular 2 Laravel Starter Kit
94 stars 25 forks source link

Page loads forever #5

Closed re1naldo closed 8 years ago

re1naldo commented 8 years ago

I have just finished installing this. After I executed npm start, it redirected me to localhost:3000, but that page kept loading and finally gave error: The localhost page isn’t working. localhost didn’t send any data.

The web server was already running and I could run the other applications there. What should I check here?

jaesung2061 commented 8 years ago

Are you running php artisan serve? Check what port it's running on when you execute the command.

On Friday, June 24, 2016, re1naldo notifications@github.com wrote:

I have just finished installing this. When I executed npm start, it redirected me to localhost:3000, but that page kept loading and finally gave error: The localhost page isn’t working. localhost didn’t send any data.

The web server was already running and I could run the other applications there. What should I check here?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jaesung2061/anvel/issues/5, or mute the thread https://github.com/notifications/unsubscribe/AH7GUnF_KpwqPgjo2nNqN9VNqcMVLBRQks5qPNCdgaJpZM4I-SMr .

re1naldo commented 8 years ago

Running php artisan serve would give an error: PHP Parse error: syntax error, unexpected '.', expecting ',' or ';' in /var/www/html/anvel/bootstrap/app.php on line 3

The port seemed to be correct, no?

[BS] Proxying: http://localhost:8000
Local: http://localhost:3000
External: http://10.193.203.31:3000
UI: http://localhost:3001
UI External: http://10.193.203.31:3001
jaesung2061 commented 8 years ago

Can you copy and paste line three of bootstrap/app.php?

re1naldo commented 8 years ago

const APP_ROOT = __DIR__.'/../';

I haven't made any changes to the original files.

jaesung2061 commented 8 years ago

What version of php are you using?

On Saturday, June 25, 2016, re1naldo notifications@github.com wrote:

const APP_ROOT = DIR.'/../';

I haven't made any changes to the original files.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jaesung2061/anvel/issues/5#issuecomment-228518221, or mute the thread https://github.com/notifications/unsubscribe/AH7GUg9LUdmVLzHygFJpYvrRCVshxUWrks5qPNSBgaJpZM4I-SMr .

re1naldo commented 8 years ago

5.5.9-1ubuntu4.17

jaesung2061 commented 8 years ago

Try upgrading your php version.

On Saturday, June 25, 2016, re1naldo notifications@github.com wrote:

5.5.9-1ubuntu4.17

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jaesung2061/anvel/issues/5#issuecomment-228519038, or mute the thread https://github.com/notifications/unsubscribe/AH7GUh_vKqpGbYUkm-bErSKgO8Zu2mi6ks5qPNdtgaJpZM4I-SMr .

re1naldo commented 8 years ago

npm start still gave the same result after upgrading PHP, but I can use php artisan serve now. Thanks for your support.

insertkoens commented 7 years ago

I'm having this issue with php 6.25. Access via :8000 and :3001 both working, but :3000 keeps loading. Everything else seems to be working fine, except for browsersync.

UPDATE: Looks like ive finally got it to work using 127.0.0.1 instead of localhost both in .env and php artisan serve --host:127.0.0.1