douqiang4501 2017-03-31 15:15
浏览 201
已采纳

如果我通过vagrant box添加家园,那么homestead.yaml在哪里?

According to https://laravel.com/docs/5.4/homestead I can install Laravel Homestead by doing vagrant box add laravel/homestead. Installing by cloning the git repo is another way but it's not the only way listed nor is it even the first method listed.

Anyway, the next section of the documentation is Configuring Homestead. It talks about homestead.yaml a lot but idk where that file lives. Maybe there are additional steps in the install process that https://laravel.com/docs/5.4/homestead neglects to mention?

  • 写回答

1条回答 默认 最新

  • duanniesui6391 2017-03-31 15:56
    关注

    no its not one or the other, but the 2 steps are necessary

    1. install the vagrant box running vagrant box add laravel/homestead

    2. install homestead from cloning the git repo

      $ cd ~
      $ git clone https://github.com/laravel/homestead.git Homestead
      $ cd Homestead
      $ bash init.sh
      
    3. Review the Homestead configuration

    open the Homestead.yaml file and check all the configuration

    1. boot the VM once you have configured your homestead file

      $ vagrant up
      
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?