I am doing a Laravel 4 project, and there is an option on mail.pjp, where you can pretend to send an email, but you actually are logging it locally into a file. This is useful for development.
The problem I have is with version control. If I check in, this option as "true", then I risk that when I update the production server, it might disable emails if I am not careful.
On the other hand, if I check in the file in git as "true", it might happen what happened today, that I lost a good couple of hours trying to understand why the mail was not working because I forgot I had to change this option for my development environment.
What way could I handle these "production vs development" configuration issues with git?
For instance, you could have a production branch and a dev branch.
On the production branch, just make one commit to change the configuration file, then use the dev branch the same way you used your master branch.
The deployment process becomes
On dev:
On production:
And maybe add some runtime test to pick the good one at the right time.
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