I am working in a firm where we currently do not have any staging workflow, and things are getting tight. I am trying to set up a proper workflow and have read some excellent tutorials and resources for different approaches. The workflow that I will be using is that developers commit and push their codes to a dev repo, which is then copied to prod repo. Then a simple pull is done on the prod server.
We are using CakePHP. There are 2 servers (prod and dev) and of course the localhost. However, the configurations (db, payments, auth etc) are different for each environment. My main question is that which option is better from the below (other suggestions are also welcomed)?
I would like to know whats the best way to do this. Also, a recommendation for a Git workflow with easy deployment would be great.
This is exactly the kind of thing your .gitignore
file is for, go with option 1.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With