文章目錄
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 文件檢查 數據庫名稱