How to configure to open another project with Laravel + Homestead in Windows

2

I have made the configuration in the following files. Also make the command vagrant up and then vagrant reload --provision and another command vagrant-hostsupdater . I honestly can not see my other project in the browser, but if the first project, how can I configure it?

Estoy usando laravel+homested en Windows
donde tengo mis proyectos es en está dirección
C:\Users\e.herrera\Desktop\laravel\Code
un proyecto se llama laracast y otro myfirstsitelaravel
mi Homestead está en dirección C:\Users\e.herrera\Homestead 
#he configurado el .Homestead.yaml en está dirección
#my C:\Users\e.herrera\.homestead
ip: "192.168.10.10" 
memory: 2048 
cpus: 1 
provider: virtualbox

authorize: ~/.ssh/id_rsa.pub
keys: - ~/.ssh/id_rsa
folders: 
- map: C:\Users\e.herrera\Desktop\laravel\Code 
to: /home/vagrant/Code
sites: 
- map: dev.app 
to: /home/vagrant/Code/myfirstsitelaravel/public 
- map: larabook.app 
to: /home/vagrant/Code/laracast/public
databases: - homestead
#blackfire:
#- id: foo
#token: bar
#client-id: foo
#client-token: bar
#ports:
#- send: 50000
#to: 5000
#- send: 7777
#to: 777
#protocol: udp
hosts
C:\Windows\System32\drivers\etc
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 homestead.app 
127.0.0.1 dev.app
192.168.10.10 peliroja.app
    
asked by ito2307gm 24.08.2016 в 18:00
source

1 answer

1

Take into account that all this configuration you have to do after running vagrant up and then do the following configurations.

Ingresar a esta direccion y abrir el archivo hosts con un editor de texto con permiso de administrador y colocar lo siguiente

direccion -> C:\Windows\System32\drivers\etc
127.0.0.1 myfirstsitelaravel.app
127.0.0.1 laracast.app
direccion donde tengo creado mis proyetos es en 
C:\Users\e.herrera\Desktop\laravel\Code
configurar el archivo Homestead.yaml que esta ubicado en C:\Users\e.herrera\.homestead y el archivo se llama Homestead.yaml puedes abrirlo con un editor de texto con permiso de administrador

folders:
    - map: C:\Users\e.herrera\Desktop\laravel\Code\myfirstsitelaravel
      to: /home/vagrant/Code/myfirstsitelaravel
    - map: C:\Users\e.herrera\Desktop\laravel\Code\laracast
      to: /home/vagrant/Code/laracast

sites:
    - map: myfirstsitelaravel.app
      to: /home/vagrant/Code/myfirstsitelaravel/public
    - map: laracast.app
      to: /home/vagrant/Code/laracast/public

at the end you run vagrant reload --provision

    
answered by 24.08.2016 в 18:18