vagrant share with laravel homestead

前端 未结 4 1338
一个人的身影
一个人的身影 2021-02-08 18:29

I\'m running into an issue getting vagrant share to work in conjunction with the laravel homestead vagrant box. My homestead.yaml file looks like:

---
ip: \"192.         


        
4条回答
  •  死守一世寂寞
    2021-02-08 19:10

    The first step is to create an account for Vagrant Cloud, if you haven't already.

    Once you've done that, in your terminal (not logged into the Homestead machine) run vagrant login and login with your details.

    Then run vagrant global-status to find the ID of the vagrant machine Homestead is running on.

    Run vagrant share 123a4 (where 123a4 is the machine ID) and your machine will be shared!

    Note that you might have to set up your Nginx configuration to listen for the URL that has been generated for you so it points to the correct site on the machine.

提交回复
热议问题