Homestead Laravel 5.3.29未指定输入文件

时间:2017-01-08 15:48:35

标签: php laravel laravel-5 laravel-5.3

Stack:

  • Ubuntu 16.04
  • Laravel 5.3.29
  • Vagrant 1.9.1

我在〜/ Homestead /

中跑步:vagrant up

这是来自〜/ .homestead /:

的yaml
---
ip: "192.168.10.10"
memory: 2048
cpus: 1

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Code
      to: /home/vagrant/code

sites:
    - map: homestead.app
      to: /home/vagrant/code/blog/public/

databases:
    - homestead

variables:
    - key: APP_ENV
      value: local

我还编辑了/ etc / hosts: 192.168.10.10 homestead.app

在我的本地文件夹"〜/ Code / blog / public"在流浪汉ssh" home / vagrant / code / blog / public" - 存在。 当我转到http://homestead.app时 - 它显示了我的错误:没有指定输入文件。

任何帮助都将不胜感激。

1 个答案:

答案 0 :(得分:0)

nginx找不到你的index.php,因为公用文件夹的路径有一个尾部斜杠。

ip: "192.168.10.10"
memory: 2048
cpus: 1

authorize: ~/.ssh/id_rsa.pub

keys:
    - ~/.ssh/id_rsa

folders:
    - map: ~/Code
      to: /home/vagrant/code

sites:
    - map: homestead.app
      to: /home/vagrant/code/blog/public/ <-- remove this trailing slash

databases:
    - homestead

variables:
    - key: APP_ENV
      value: local