设置家园Laravel
问题描述:
我安装了vagrant,virtualbox,并将宅基地添加到了我的全球作曲家要求中。我能够在控制台中运行预期产出的宅基地。设置家园Laravel
当我编辑宅基地YAML文件时,我有点困惑。
folders:
- map: ~/sites/testproject
to: /home/vagrant/testproject
sites:
- map: testproject.dev
to: /home/vagrant/testproject/Laravel/public
这就是我放在我的YAML文件中。
我已经找到下一个现有的项目:
/Users/mdobrenko/sites/testproject
当试图通过相关的IP或域名testproject.dev访问该网站,我得到这个错误:
No input file specified.
任何想法?宅基地2.0似乎有点难以为我所听到的新手设置 - 至少与1.0相比时
答
在开始的时候,我和你一样迷惑。但经过一番搜索,我得出了这个结论。你的YAML应该看起来正确。
folders:
- map: ~/sites/testproject
to: /home/vagrant/sites
sites:
- map: testproject.dev
to: /home/vagrant/sites/testproject/public
说明
/* Mapping path between the local machine and Homestead */
folders:
- map: /* Where is your projects, you might has many projects inside */
to: /* The path of your project that will be on Homestead */
/* Setup the site and the root folder of the site */
sites:
- map: /* The url of the project */
to: /* Path to the public folder of the project */
http://laravel.com/docs/4.2/homestead – 2015-04-04 07:46:10
也许你应该改变'sites.to'到'/家庭/流浪者/ testproject/public' ? – 2015-04-04 15:56:09