我遇到了一個問題,與流浪者宅基地無家可歸的人一起工作。我homestead.yaml文件看起來像:流浪者與拉拉維爾宅基地分享
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
authorize: /Users/me/.ssh/id_rsa.pub
keys:
- /Users/me/.ssh/id_rsa
folders:
- map: /Users/me/Projects/laravel
to: /home/vagrant/laravel
sites:
- map: laravel.app
to: /home/vagrant/laravel/public
variables:
- key: APP_ENV
value: local
當我打http://laravel.app:8000 - 一切正常。當我啓動vagrant share
生成的URL返回錯誤No input file specified.
我很難過。搜索Google數小時並未產生解決方案。我確定這只是一些基本的配置,而我並沒有將這些點連接起來。任何指針將不勝感激。謝謝!
哇。謝謝。我一直試圖弄清這個問題的時間最長。 – yan 2015-06-05 17:25:10
你能解釋最後一段嗎?你如何「聽URL」? – 2015-11-17 23:29:07
您需要將URL映射到流浪機器上的目錄。因此,使用Homestead,你可以運行'serve url-to-vagrant-cloud.com〜/ path/to/your/code/public',這將爲你做到這一點。 – Sacha 2015-11-18 09:38:42