I’ve just started my first Advanced-Theme project (up to now, I’ve only used the basic template of yii2) and I’m having a hard time figuring out how to use these local files. I’ve switched to the development environment using init and popoulated the local config files with some dev-environment informations (local db etc.). When deploying the project using git (-> Bitbucket), those -local files won’t get uploaded because of gitignore, so the application fails because index.php is trying to require those -local files.
Afterwards, I’ve tried switching to dthe productive environment using init and would have guessed that init removes these requirements from index.php - it doesn’t. Could you tell me whats the correct way of deploying and using those local files? Not deploying them -> Error. Deploying them -> Not really local. Modifying index.php manually before each deployment -> . Any suggestions?
I did get the idea behind it - but still index.php will fail if it requires a php file which is not available inside the repository. Either index.php will drop its requirements or these files have to get uploaded.
Professor, as I’ve mentioned before, I unterstood the idea behind this concept. The problem I was facing is that my application gets deployed from the git repository - which means: Any file which is not present in the git repository, will not get downloaded by the application server (using git pull). Therefore, I do need to have the local files present, even if they’re empty - for the only reason that index.php can require them. By using the git commands I’ve posted yesterday, one can add an empty version of the local files to the repository and change them afterwards without uploading the newer versions (which will then include local configs).