使用 homestead 配置 laravel 開發環境,但是設定對應檔夾的時候不是我在設定檔裡面設定的位置

來源:互聯網
上載者:User
使用 homestead 配置 laravel 開發環境,vagrant up 命令運行正常,但是設定對應檔夾的時候不是我在設定檔裡面設定的位置,求大神幫忙。

下面是兩個代碼,問題就是我設定的檔案夾,和配置出來的檔案夾對不上。

Homestead.yaml 檔案配置

  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

terminal 輸入 vagrant up 命令返回資訊

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
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.