I’m using Yii2 Advanced Template with Git and have set up a worktree to work on a different branch. When I access the worktree copy in the browser:
- I can navigate directories and see the files directly (e.g., /frontend/web/index.php).
- However, no views are rendered; the application does not behave as expected.
Here’s what I’ve already checked:
- Dependencies are installed in the worktree using composer install.
- Database migrations are applied with php yii migrate.
- Permissions for runtime and web/assets are set correctly.
- Configuration files (main.php and main-local.php) in the common/config directory are identical to the main branch and correctly point to the database and other resources.
This issue does not happen in the main branch but occurs only in the worktree.
Are there specific considerations or limitations when running a Yii2 Advanced application in a Git worktree? Could this be related to paths, symbolic links, caching, or some missing configuration?
Any insights or debugging tips would be highly appreciated!