vagrant share with laravel homestead

前端 未结 4 1489
一个人的身影
一个人的身影 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:12

    There's a solution without having to do anything on your homestead VM.

    You can install a program called ngrok which does a similar thing to vagrant share but works better with the multiple sites that Homestead uses. You will need to sign up for an account but basic usage is free.

    Run: ngrok http -host-header=rewrite your-local-site.app:80

    (Where your-local-site.app is what's used for the map directive in your Homestead.yaml file)

    Then your site will be available globally on the url that ngrok gives you.

提交回复
热议问题