Git ignores config/database.php in Laravel -


i have fresh installation of laravel 5.1 , set forge + digitalocean + bitbucket workflow.

i tried deploy app using setup. went smoothly until got laravel error saying like: database[] not configured.

then started checking db connections, credentials , fine on machine, ssh'd forge instance , wanted check .env credentials , database configuration , found no database.php in config folder. checked git repository see if existed there , didn't.

i checked .gitignore in app's root folder , none of config files being ignored.

so went ahead , tried add config/database.php manually doing git add config/database.php , popped message along lines of: config/database.php being ignored 1 of .gitignore files.

i went through .gitignore files in every single folder 20 times, literally! couldn't find that...

so... kind of sorcery this?

this caused global gitignore file, found @ ~/.gitignore_global. default values of mine were:

*~ .ds_store database.php 

after removing database.php entry, config/database.php got recognised me.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -