This is probably a fairly elementary question, but I am not 100% familiar with the best Git practices. I am developing a web application which will regularly push updates. I have files on my local machine, which is where I do most of my editing/developing. I have a remove test server which I push files to during development.
I then have a live remote production server which houses the live application. All of the files are the same (expect new features on the test server) with one exception. I have a config.php file which has various settings such as DB connection settings, paths, API keys, etc.
I have added a .gitignore
file on both remote servers telling Git to ignore the config.php file. If I make any additions to it, I can manually override it later.
I upload files to the test server as needed, and once everything is good, I pull the files from github (where everything is stored) to the live server to launch files.
Does this sound about right? Am I missing something or doing something incorrectly. Appreciate the assistance.