使用 homestead 配置 laravel 开发环境,但是设置映射文件夹的时候不是我在配置文件里面设置的位置

WBOY
풀어 주다: 2016-07-11 10:21:26
원래의
1536명이 탐색했습니다.

使用 homestead 配置 laravel 开发环境,vagrant up 命令运行正常,但是设置映射文件夹的时候不是我在配置文件里面设置的位置,求大神帮忙。

下面是两个代码,问题就是我设置的文件夹,和配置出来的文件夹对不上。

Homestead.yaml 文件配置

<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>
로그인 후 복사

terminal 输入 vagrant up 命令返回信息

<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>
로그인 후 복사
관련 라벨:
원천:php.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿
회사 소개 부인 성명 Sitemap
PHP 중국어 웹사이트:공공복지 온라인 PHP 교육,PHP 학습자의 빠른 성장을 도와주세요!