文章目录
- 1. failed to open stream: No such file or directory in xxx
- 2. 部署本地项目 500
- 3. SQLSTATE[42S02]: Base table or view not found: 1146 Table 'homestead.articles' doesn't exist (SQL: select count(*) as aggregate from `articles` where `category_id` in (7) and `title_zh` like %%)
Android 小渣渣,接手 Laravel 项目,真的是…MMP。
简单记录遇到的问题。
1. failed to open stream: No such file or directory in xxx
检查 Homestead.yaml 配置,需要注意的如下:
- folders:
- map: 本地项目存放根地址
to: /home/vagrant/Code
- sites:
- map: 本地当前项目测试域名,随便起
to: /home/vagrant/Code/项目名/public
2. 部署本地项目 500
缺少 .env 文件,查看忽略文件中将当前此文件忽略了。
3. SQLSTATE[42S02]: Base table or view not found: 1146 Table ‘homestead.articles’ doesn’t exist (SQL: select count(*) as aggregate from articles
where category_id
in (7) and title_zh
like %%)
.env 文件检查 数据库名称