Use homestead to configure the laravel development environment, but when setting the mapping folder, it is not the location I set in the configuration file.

WBOY
Release: 2016-07-11 10:21:26
Original
1552 people have browsed it

Use homestead to configure the laravel development environment. The vagrant up command runs normally, but when setting the mapping folder, it is not in the location I set in the configuration file. Please help me.

The following are two codes. The problem is that the folder I set does not match the configured folder.

Homestead.yaml file configuration

<code>  2 ip: "192.168.10.10"
  3 memory: 2048
  4 cpus: 1
  5 provider: virtualbox
  6  
  7 authorize: ~/.ssh/id_rsa.pub
  8  
  9 keys:
 10     - ~/.ssh/id_rsa
 11  
 12 folders:
 13     - map: ~/Documents/develop
 14       to: /home
 15  
 16 sites:
 17     - map: goldenquant.app
 18       to: /home/goldenquant/public
 19     - map: blog.app
 20       to: /home/blog/public
 21  
 22 databases:
 23     - homestead
</code>
Copy after login

Terminal input vagrant up command returns information

<code>Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'laravel/homestead'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Setting the name of the VM: Homestead_default_1468122349760_33905
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 => 2222 (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key
    default: Warning: Connection timeout. Retrying...
    default: 
    default: Vagrant insecure key detected. Vagrant will automatically replace
    default: this with a newly generated keypair for better security.
    default: 
    default: Inserting generated public key within guest...
    default: Removing insecure key from the guest if it's present...
    default: Key inserted! Disconnecting and reconnecting using new SSH key...
==> default: Machine booted and ready!
==> default: Checking for guest additions in VM...
==> default: Mounting shared folders...
    default: /vagrant => /Users/Xing/Documents/Homestead</code>
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!