按照官網的文檔安裝了Larval Homestead,但是虛擬機啟動後站點無法正常訪問,提示No input file specified.
以下是Homestead.yaml的配置內容
---
ip: "192.168.10.10"
memory: 2048
cpus: 1
hostname: jack
name: jack
provider: virtualbox
authorize: ~/.ssh/id_rsa.pub
keys:
- ~/.ssh/id_rsa
folders:
- map: "/Users/Jack/laravel"
to: "/home/vagrant/laravel"
sites:
- map: homestead.app
to: "/home/vagrant/laravel/public"
hhvm: true
databases:
- homestead
# blackfire:
# - id: foo
# token: bar
# client-id: foo
# client-token: bar
# ports:
# - send: 50000
# to: 5000
# - send: 7777
# to: 777
# protocol: udp
/Users/Jack/laravel這個Laravel套件是我用composer安裝的,用php artisan -serve 測試沒問題 可以正常存取。