Closed guoyunhe closed 1 year ago
I think there is another possible option in suggested solutions. The tmp
folder isn't creating properly.
This script works for me.
{
"scripts": {
"test": "mkdir -p tmp; node ace test"
}
}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Package version
18.2.0
Node.js and npm version
Node 16.17.1 NPM 8.15.0
Reproduce Repo
I got this error:
The default sqlite file location is
tmp/db.sqlite3
. However,tmp
folder is ignored by git. So when others clone the repo, it will not be created automatically.Suggested solutions
A: change default sqlite file location to
database
folderdatabase
folder is in version control. Laravel store its sqlite in this folder. I prefer this way because sqlite is main database and it is not a tmp file. tmp folder should only be used for tmp data, caching, or so.B: add
tmp
folder into version controlRemove
tmp
from root.gitignore
. Createtmp/.gitignore
with: