Since I am still learning and need some insight, how do you install and setup yii2 including making a git repo so I can work from different computer and commit my work?
My steps are:
Install yii2 advanced using composer into localhost computer first.
Create a new repo (using bitbucket) server, push everything from local to git server.
Using other computer to set up git connection and pull everything.
I thought I am done, I realized something that installing yii2 with composer or from archive contains gitignore for some files. So when I do git pull on the other computer, I cannot run the webapp due to some missing files.
Is it a bad thing if I remove the gitignore file, or its there for a good reason? How do you do it if you want to work on your web remotely?
Applications built on the advanced template must be initialized after a fresh checkout in a new environment because the initialization script generates some files, like frontend/web/index.php and backend/web/index.php, with environment specific content (and that’s why these files are git-ignored).