简体   繁体   中英

Laravel homestead/nginx error

I've been using the vagrant box Laravel Homestead and it's all working fine with PHP projects. But now I have a AngularJS project which only has html.

When I map my project in the Homestead.yaml file I get a No input file specified. error.

Did anyone had this error as well? Or has someone a solution for this?

My config is:

folders:
- map: D:/Laravel-Projects/front-end
  to: /home/vagrant/Laravel-Projects/front-end

sites:
- map: angular.app
  to: /home/vagrant/Laravel-Projects/front-end

you should be mapping the site to the public folder. Also, if all your projects are in the Laravel-Projects folder, just map it 1 level up:

folders:
    - map: D:/Laravel-Projects
      to: /home/vagrant/Laravel-Projects

sites:
    - map: angular.app
      to: /home/vagrant/Laravel-Projects/front-end/public

在将站点的入口文件夹路由到站点的根目录之后,尝试在homestead文件夹中vagrant up --provision

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM