Skip to content

Commit

Permalink
fixes CodeIgniter.gitignore deleting a critical system file
Browse files Browse the repository at this point in the history
After spending a lot of time finding why my app won't run, just noticed that the gitignore I copied introduced a deletion/ignore rule of an internal folder used by the framework.
The current gitignore file deletes the folder `/system/Cache/*` and causes the following error when running the App from the CLI or the web server : `Class "CodeIgniter\Cache\CacheFactory" not found `; making the app unable to run.

I added the following rule to fix this : `!system/Cache/*`.

Note : this won't fix the bug if the system folder is renamed
  • Loading branch information
LoganTann authored Jul 17, 2021
1 parent 991e760 commit 44a9c3e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CodeIgniter.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
*/logs/log-*.php
!*/logs/index.html
*/cache/*
!system/cache/*
!*/cache/index.html
!*/cache/.htaccess

Expand Down

0 comments on commit 44a9c3e

Please sign in to comment.