zaster
207
3
General

.gitignore - Doesn't work as expected

Posted 3 months ago by zaster

I am using the Snappy PDF/Image Wrapper for Laravel 5 package and want to ignore it's config file at the production level because the config file varies in production and local

The package config file is located at

/config/snappy.php

therefore i added it to the .gitignore file

My .gitignore file looks like this

/node_modules
/public/hot
/public/storage
/storage/*.key
/vendor
/.idea
/.vagrant
/config/snappy.php
Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
.env

Unfortunately this file is not getting ignored. As a result i have to change the /config/snappy.php each time i update the production

Please sign in or create an account to participate in this conversation.