mardi 15 décembre 2015

Laravel app is not running with Vagrant on Windows

I'm following larcast tutorials for up and running laravel i have setup the laravel its working fine now i wanted it through vagrant on my windows. But i can't run my app when ever i browse "todo.app:8000" the pages doesn't response and displays the message "web page not avaliable".
however i could access the page through "localhost:8000" and am accessing it without "php artisan serve" command, but can't with "todo.app:8000". Also there is no error on running homestead,vagrant or laravel commands they are working just fine.
Can anyone please tell what i'm doing wrong ? This is my homestead.yml file

---

ip: "192.168.10.10"
memory: 2048
cpus: 1
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub

keys:
- ~/.ssh/id_rsa

folders:
- map: ~/code
  to: /home/vagrant/code

sites:
- map: todo.app
  to: /home/vagrant/code/learning-laravel-5/public

databases:
- homestead
variables:
- key: AAP_ENV
value: local
# blackfire:
#     - id: foo
#       token: bar
#       client-id: foo
#       client-token: bar

# ports:
#     - send: 50000
#       to: 5000
#     - send: 7777
#       to: 777
#       protocol: udp

These are the configuration i have done in windows host file

# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

# localhost name resolution is handled within DNS itself.
#   127.0.0.1       localhost
#   ::1             localhost
127.0.0.1 todo.app
127.0.0.1 mynew.app

If anything else is needed then please tell that also. I have already spent whole day in figure it out but i'm stuck here. I have also tried the Ip's for local host (192.168.10.10 todo.app) but it doesn't work either.
Thanks in advance



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire